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

Commit 31756df8 authored by Ian Rogers's avatar Ian Rogers
Browse files

Fix broken sort order.

Int conversion may invert the sign of a long making it unsuitable for use in
comparators.
Caught by Error Prone.
Bug: 27723540

Change-Id: I418abd102004f524080190eb5f1a53ec1388b58a
parent 92b6768e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -230,7 +230,7 @@ public class NotificationData {
            } else if (aRank != bRank) {
                return aRank - bRank;
            } else {
                return (int) (nb.getNotification().when - na.getNotification().when);
                return Long.compare(nb.getNotification().when, na.getNotification().when);
            }
        }
    };