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

Commit 02818432 authored by Lyn's avatar Lyn
Browse files

Fix remove animation running for HUN already seen in shade

Fixes: 277936467
Test: send HUN, open shade, close shade, send second HUN
      => observe no removal animation for first HUN when it times out
Flag: com.android.systemui.notification_avalanche_throttle_hun
Change-Id: I077c2f95c5aaea9a6e529869c3c5e5e1fbbf02e6
parent aa541bdb
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -262,6 +262,9 @@ public class HeadsUpManagerPhone extends BaseHeadsUpManager implements
            releaseAllImmediately();
            mReleaseOnExpandFinish = false;
        } else {
            for (NotificationEntry entry: getAllEntries().toList()) {
                entry.setSeenInShade(true);
            }
            for (NotificationEntry entry : mEntriesToRemoveAfterExpand) {
                if (isHeadsUpEntry(entry.getKey())) {
                    // Maybe the heads-up was removed already