Work around issue #3241701: crash in ActivityThread.handleWindowVisibility
Change-Id: I9d5df3605f3d216e651e0a294409f82dea3968ad
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user