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

Commit d2b63ff8 authored by Chris Tate's avatar Chris Tate Committed by Gerrit Code Review
Browse files

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

parents 3f453164 df7f900c
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;
            }