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

Commit e211f57e authored by Adrian Roos's avatar Adrian Roos
Browse files

Keep HUNs that have an active remote input

Fixes: 28043709
Change-Id: I6dc4d0baecf2d1f6fe64071ef7591d4024911524
parent f07ec150
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -669,6 +669,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;