mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-20 03:08:19 +00:00
Use Long.compare() instead of truncating values for comparison.
Bug: 24116808
This commit is contained in:
@@ -2387,7 +2387,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