Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 86cb3df2 authored by Dianne Hackborn's avatar Dianne Hackborn Committed by Android Git Automerger
Browse files

am bbf8daf4: am 505232be: Merge "Fix of Settings application sort crash"

# By Jia Arlan
# Via Android Git Automerger (1) and others
* commit 'bbf8daf4':
  Fix of Settings application sort crash
parents 065f481c bbf8daf4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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) {