Work around issue #3241701: crash in ActivityThread.handleWindowVisibility

Change-Id: I9d5df3605f3d216e651e0a294409f82dea3968ad
This commit is contained in:
Dianne Hackborn
2010-12-14 11:28:01 -08:00
parent f2e69a911a
commit bfddc0fe77

View File

@@ -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) {