mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-20 03:08:19 +00:00
Fixing other missing cases of truncated sorts.
Bug: 24505761 Change-Id: I9b9358e8b134f0c4aac32ac536d9c8a1f0629957
This commit is contained in:
@@ -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));
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user