We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 84a06f8 commit 7699ba8Copy full SHA for 7699ba8
library/src/main/java/com/etsy/android/grid/StaggeredGridView.java
@@ -922,8 +922,13 @@ private void onColumnSync() {
922
if (DBG) Log.d(TAG, "onColumnSync column width:" + mColumnWidth);
923
924
for (int pos = 0; pos < syncPosition; pos++) {
925
+ //Check for weirdness again
926
+ final Double heightRatio = positionHeightRatios.get(pos);
927
+ if(heightRatio == null){
928
+ break;
929
+ }
930
+
931
final GridItemRecord rec = getOrCreateRecord(pos);
- final double heightRatio = positionHeightRatios.get(pos);
932
final int height = (int) (mColumnWidth * heightRatio);
933
rec.heightRatio = heightRatio;
934
0 commit comments