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

Commit 1fe9342f authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "compareMessages should check instance equality first" into main

parents 76589c05 3a43b6c3
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -551,6 +551,10 @@ public final class Message implements Parcelable {
    }

    /*package*/ static int compareMessages(@NonNull Message m1, @NonNull Message m2) {
        if (m1 == m2) {
            return 0;
        }

        // Primary queue order is by when.
        // Messages with an earlier when should come first in the queue.
        final long whenDiff = m1.when - m2.when;