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

Commit 62a40f87 authored by Svet Ganov's avatar Svet Ganov Committed by Svetoslav Ganov
Browse files

Add a missing case when detecting if a toast can be added

We allow only one toast window per UID to be added at a
time. We ignore windows that run exit animation but we
should also ignore windows that should be removed after
the exit animation.

bug:31340854

Change-Id: I51c21f2c0e04341697f61e4cc107f9116254b206
parent e7c74c06
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -697,7 +697,8 @@ class DisplayContent {
        for (int i = 0; i < windowCount; i++) {
            WindowState window = windows.get(i);
            if (window.mAttrs.type == TYPE_TOAST && window.mOwnerUid == uid
                    && !window.mPermanentlyHidden && !window.mAnimatingExit) {
                    && !window.mPermanentlyHidden && !window.mAnimatingExit
                    && !window.mRemoveOnExit) {
                return false;
            }
        }