Merge "Fix of Settings application sort crash"

This commit is contained in:
Dianne Hackborn
2013-01-25 01:02:58 +00:00
committed by Gerrit Code Review

View File

@@ -93,7 +93,7 @@ class BatterySipper implements Comparable<BatterySipper> {
public int compareTo(BatterySipper other) {
// 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) {