Merge "Fix of Settings application sort crash"
This commit is contained in:
@@ -93,7 +93,7 @@ class BatterySipper implements Comparable<BatterySipper> {
|
|||||||
|
|
||||||
public int compareTo(BatterySipper other) {
|
public int compareTo(BatterySipper other) {
|
||||||
// Return the flipped value because we want the items in descending order
|
// Return the flipped value because we want the items in descending order
|
||||||
return (int) (other.getSortValue() - getSortValue());
|
return Double.compare(other.getSortValue(), getSortValue());
|
||||||
}
|
}
|
||||||
|
|
||||||
void getQuickNameIconForUid(Uid uidObj) {
|
void getQuickNameIconForUid(Uid uidObj) {
|
||||||
|
Reference in New Issue
Block a user