Fix folder order regression (issue 6482634)
Change-Id: I8246450ec857d0653c65d9daaf7a8b771de6c974
This commit is contained in:
committed by
The Android Automerger
parent
d7b03ae38b
commit
4d7d378ce4
@@ -323,7 +323,6 @@ public class Folder extends LinearLayout implements DragSource, View.OnClickList
|
||||
int rhIndex = rhs.cellY * mNumCols + rhs.cellX;
|
||||
return (lhIndex - rhIndex);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private void placeInReadingOrder(ArrayList<ShortcutInfo> items) {
|
||||
@@ -335,7 +334,8 @@ public class Folder extends LinearLayout implements DragSource, View.OnClickList
|
||||
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 @@ public class Folder extends LinearLayout implements DragSource, View.OnClickList
|
||||
} else {
|
||||
mFolderName.setText("");
|
||||
}
|
||||
updateItemLocationsInDatabase();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user