mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-20 03:08:19 +00:00
am 17e2d495: Use Long.compare() instead of truncating values for comparison.
* commit '17e2d49547eb8d068b1ba816c6226cf5ef77369d': Use Long.compare() instead of truncating values for comparison.
This commit is contained in:
@@ -2362,7 +2362,7 @@ public class LauncherModel extends BroadcastReceiver
|
||||
Collections.sort(allWorkspaceItems, new Comparator<ItemInfo>() {
|
||||
@Override
|
||||
public int compare(ItemInfo lhs, ItemInfo rhs) {
|
||||
return (int) (lhs.container - rhs.container);
|
||||
return Long.compare(lhs.container, rhs.container);
|
||||
}
|
||||
});
|
||||
for (ItemInfo info : allWorkspaceItems) {
|
||||
|
||||
Reference in New Issue
Block a user