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

Commit bfddc0fe authored by Dianne Hackborn's avatar Dianne Hackborn
Browse files

Work around issue #3241701: crash in ActivityThread.handleWindowVisibility

Change-Id: I9d5df3605f3d216e651e0a294409f82dea3968ad
parent f2e69a91
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -2592,6 +2592,12 @@ public final class ActivityThread {

    private final void handleWindowVisibility(IBinder token, boolean show) {
        ActivityClientRecord r = mActivities.get(token);
        
        if (r == null) {
            Log.w(TAG, "handleWindowVisibility: no activity for token " + token);
            return;
        }
        
        if (!show && !r.stopped) {
            performStopActivityInner(r, null, show, false);
        } else if (show && r.stopped) {