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

Commit 5471e90e authored by Chong Zhang's avatar Chong Zhang
Browse files

Clearing mDestroying flag when app is made visible again

If not cleared window will remain invisible and can't receive inputs,
which coud lead to ANR.

Also continue looking for windows to be destroyed instead of stopping
on first one that's not removed by client.

bug: 27123118
Change-Id: I27048779886c69eb6e7ad5e21210be511416d8b6
parent dc414fa4
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -310,6 +310,11 @@ class AppWindowToken extends WindowToken {
            if (!(win.mRemoveOnExit && win.mExiting)) {
                win.mExiting = exiting;
            }
            // If we're no longer exiting, remove the window from destroying list
            if (!win.mExiting && win.mDestroying) {
                win.mDestroying = false;
                service.mDestroySurface.remove(win);
            }
        }
    }

@@ -326,7 +331,7 @@ class AppWindowToken extends WindowToken {
            }

            if (!mAppStopped && !win.mClientRemoveRequested) {
                return;
                continue;
            }

            win.destroyOrSaveSurface();