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

Commit ba2a922f authored by András Kurucz's avatar András Kurucz
Browse files

Reset HUN clipping after cancellation of disappearing animation

If the disappear animation of a notification is canceled before it
finishes, the clipping of the notification may remain in an
inconsistent state. This would leave the notification clipped until it
starts another HUN appear/disappear animation.

Test: atest ExpandableNotificationRowTest
Bug: 356958336
Flag: EXEMPT trivial bugfix
Change-Id: I1a35f0e34d24c6f7889d26a3ff0a8edca286b253
parent 5b3b93fc
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -444,11 +444,9 @@ public abstract class ActivatableNotificationView extends ExpandableOutlineView
                if (onFinishedRunnable != null) {
                    onFinishedRunnable.run();
                }
                if (mRunWithoutInterruptions) {
                    enableAppearDrawing(false);
                }

                // We need to reset the View state, even if the animation was cancelled
                enableAppearDrawing(false);
                onAppearAnimationFinished(isAppearing);

                if (mRunWithoutInterruptions) {