Merge "Work around issue #3241701: crash in ActivityThread.handleWindowVisibility"

This commit is contained in:
Dianne Hackborn
2010-12-14 17:47:39 -08:00
committed by Android (Google) Code Review

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