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

Commit 1b7ea181 authored by Selim Cinek's avatar Selim Cinek
Browse files

Fixed a bug where the heads-up couldn't time out

When heads up notification in the shade, the heads-up
could get into a situation where it wouldn't time out
anymore.

Test: add hun while shade expanded, click expand twice
Change-Id: I52444f4ee025d4cb1c25e4a39442875048fd2701
parent 9212de8f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -602,7 +602,7 @@ public class HeadsUpManager implements ViewTreeObserver.OnComputeInternalInsetsL
     */
    public void setExpanded(NotificationData.Entry entry, boolean expanded) {
        HeadsUpEntry headsUpEntry = mHeadsUpEntries.get(entry.key);
        if (headsUpEntry != null && headsUpEntry.expanded != expanded) {
        if (headsUpEntry != null && headsUpEntry.expanded != expanded && entry.row.isPinned()) {
            headsUpEntry.expanded = expanded;
            if (expanded) {
                headsUpEntry.removeAutoRemovalCallbacks();