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

Commit ebd3805a authored by Chris Tate's avatar Chris Tate Committed by Android Git Automerger
Browse files

am d2b63ff8: Merge "Fix bug regarding the comparator sorts Alarms into increasing time order."

* commit 'd2b63ff8':
  Fix bug regarding the comparator sorts Alarms into increasing time order.
parents ae96c023 d2b63ff8
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1480,8 +1480,8 @@ class AlarmManagerService extends SystemService {
     */
    public static class IncreasingTimeOrder implements Comparator<Alarm> {
        public int compare(Alarm a1, Alarm a2) {
            long when1 = a1.when;
            long when2 = a2.when;
            long when1 = a1.whenElapsed;
            long when2 = a2.whenElapsed;
            if (when1 - when2 > 0) {
                return 1;
            }