Fix folder order regression (issue 6482634)
Change-Id: I8246450ec857d0653c65d9daaf7a8b771de6c974
diff --git a/src/com/android/launcher2/Folder.java b/src/com/android/launcher2/Folder.java
index e8f1ac9..92cabe5 100644
--- a/src/com/android/launcher2/Folder.java
+++ b/src/com/android/launcher2/Folder.java
@@ -323,7 +323,6 @@
int rhIndex = rhs.cellY * mNumCols + rhs.cellX;
return (lhIndex - rhIndex);
}
-
}
private void placeInReadingOrder(ArrayList<ShortcutInfo> items) {
@@ -335,7 +334,8 @@
maxX = item.cellX;
}
}
- GridComparator gridComparator = new GridComparator(maxX);
+
+ GridComparator gridComparator = new GridComparator(maxX + 1);
Collections.sort(items, gridComparator);
final int countX = mContent.getCountX();
for (int i = 0; i < count; i++) {
@@ -383,6 +383,7 @@
} else {
mFolderName.setText("");
}
+ updateItemLocationsInDatabase();
}
/**