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

Commit f841912d authored by Selim Cinek's avatar Selim Cinek Committed by android-build-merger
Browse files

Merge "Changing the ordering for heads up notifications" into mnc-dr-dev am:...

Merge "Changing the ordering for heads up notifications" into mnc-dr-dev am: 688e046b am: f9c4f745 am: ae070b96
am: 49ebad9e

* commit '49ebad9e':
  Changing the ordering for heads up notifications
parents f81de0e4 49ebad9e
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -602,6 +602,13 @@ public class HeadsUpManager implements ViewTreeObserver.OnComputeInternalInsetsL

        @Override
        public int compareTo(HeadsUpEntry o) {
            boolean selfFullscreen = hasFullScreenIntent(entry);
            boolean otherFullscreen = hasFullScreenIntent(o.entry);
            if (selfFullscreen && !otherFullscreen) {
                return -1;
            } else if (!selfFullscreen && otherFullscreen) {
                return 1;
            }
            return postTime < o.postTime ? 1
                    : postTime == o.postTime ? entry.key.compareTo(o.entry.key)
                            : -1;