Loading src/com/android/launcher3/InvariantDeviceProfile.java +2 −2 Original line number Diff line number Diff line Loading @@ -252,8 +252,8 @@ public class InvariantDeviceProfile { ArrayList<InvariantDeviceProfile> pointsByNearness = points; Collections.sort(pointsByNearness, new Comparator<InvariantDeviceProfile>() { public int compare(InvariantDeviceProfile a, InvariantDeviceProfile b) { return (int) (dist(width, height, a.minWidthDps, a.minHeightDps) - dist(width, height, b.minWidthDps, b.minHeightDps)); return Float.compare(dist(width, height, a.minWidthDps, a.minHeightDps), dist(width, height, b.minWidthDps, b.minHeightDps)); } }); Loading src/com/android/launcher3/LauncherModel.java +1 −1 Original line number Diff line number Diff line Loading @@ -2469,7 +2469,7 @@ public class LauncherModel extends BroadcastReceiver lhs.cellY * cellCountX + lhs.cellX); long rr = (rhs.container * containerOffset + rhs.screenId * screenOffset + rhs.cellY * cellCountX + rhs.cellX); return (int) (lr - rr); return Long.compare(lr, rr); } }); } Loading Loading
src/com/android/launcher3/InvariantDeviceProfile.java +2 −2 Original line number Diff line number Diff line Loading @@ -252,8 +252,8 @@ public class InvariantDeviceProfile { ArrayList<InvariantDeviceProfile> pointsByNearness = points; Collections.sort(pointsByNearness, new Comparator<InvariantDeviceProfile>() { public int compare(InvariantDeviceProfile a, InvariantDeviceProfile b) { return (int) (dist(width, height, a.minWidthDps, a.minHeightDps) - dist(width, height, b.minWidthDps, b.minHeightDps)); return Float.compare(dist(width, height, a.minWidthDps, a.minHeightDps), dist(width, height, b.minWidthDps, b.minHeightDps)); } }); Loading
src/com/android/launcher3/LauncherModel.java +1 −1 Original line number Diff line number Diff line Loading @@ -2469,7 +2469,7 @@ public class LauncherModel extends BroadcastReceiver lhs.cellY * cellCountX + lhs.cellX); long rr = (rhs.container * containerOffset + rhs.screenId * screenOffset + rhs.cellY * cellCountX + rhs.cellX); return (int) (lr - rr); return Long.compare(lr, rr); } }); } Loading