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

Commit 99203110 authored by tanxiaoyan's avatar tanxiaoyan
Browse files

Should set visibleRequest false when destroy activity



When destroy activity from Task#removeActivities or Task#remove, it may directly call destroyIfPossible rather than finishIfPossible which may not set visibleRequest false.
However the activity may be collect in a transition with visibleRequest true, and all of this cause sync timeout.

Bug: 330823160

Change-Id: I35ed0a807e54004e6228f720803d146a7f1a2acc
Signed-off-by: default avatartanxiaoyan <tanxiaoyan@xiaomi.com>
parent b92cea9b
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -3903,6 +3903,7 @@ final class ActivityRecord extends WindowToken implements WindowManagerService.A
        boolean removedFromHistory = false;

        cleanUp(false /* cleanServices */, false /* setState */);
        setVisibleRequested(false);

        if (hasProcess()) {
            app.removeActivity(this, true /* keepAssociation */);