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

Commit 23b07d55 authored by Dianne Hackborn's avatar Dianne Hackborn Committed by Android Git Automerger
Browse files

am 43861f9d: am f46449ab: Merge "Avoid IllegalArgumentException in Preference.java compareTo()"

* commit '43861f9d':
  Avoid IllegalArgumentException in Preference.java compareTo()
parents 4e73e8a8 43861f9d
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1072,6 +1072,9 @@ public class Preference implements Comparable<Preference>, OnDependencyChangeLis
                || (mOrder == DEFAULT_ORDER && another.mOrder != DEFAULT_ORDER)) {
            // Do order comparison
            return mOrder - another.mOrder; 
        } else if (mTitle == another.mTitle) {
            // If titles are null or share same object comparison
            return 0;
        } else if (mTitle == null) {
            return 1;
        } else if (another.mTitle == null) {