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

Commit e6036ad0 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Keep HUNs that have an active remote input" into nyc-dev

parents 2cde05c3 e211f57e
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -674,6 +674,13 @@ public class HeadsUpManager implements ViewTreeObserver.OnComputeInternalInsetsL
            } else if (!selfFullscreen && otherFullscreen) {
                return 1;
            }

            if (remoteInputActive && !o.remoteInputActive) {
                return -1;
            } else if (!remoteInputActive && o.remoteInputActive) {
                return 1;
            }

            return postTime < o.postTime ? 1
                    : postTime == o.postTime ? entry.key.compareTo(o.entry.key)
                            : -1;