diff options
author | Dianne Hackborn <hackbod@google.com> | 2010-12-21 23:24:50 -0800 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2010-12-21 23:24:50 -0800 |
commit | eaa9e2750ff77c860df34273b64bc0b678a75748 (patch) | |
tree | 5b2d806b4233bd91cce2c97e891379b156621e5f /services/java | |
parent | bb7dc3c8553b9dc4b718b93eabff77fcba10e6a0 (diff) | |
parent | 5f4d6433463078687bcc9e7a421efb28644440ab (diff) | |
download | frameworks_base-eaa9e2750ff77c860df34273b64bc0b678a75748.zip frameworks_base-eaa9e2750ff77c860df34273b64bc0b678a75748.tar.gz frameworks_base-eaa9e2750ff77c860df34273b64bc0b678a75748.tar.bz2 |
Merge "Fix issue #3263026: Screen rotation animation is funky..."
Diffstat (limited to 'services/java')
-rw-r--r-- | services/java/com/android/server/am/ActivityManagerService.java | 12 | ||||
-rw-r--r-- | services/java/com/android/server/am/ActivityRecord.java | 2 |
2 files changed, 4 insertions, 10 deletions
diff --git a/services/java/com/android/server/am/ActivityManagerService.java b/services/java/com/android/server/am/ActivityManagerService.java index b308f69..4cf01aa 100644 --- a/services/java/com/android/server/am/ActivityManagerService.java +++ b/services/java/com/android/server/am/ActivityManagerService.java @@ -129,7 +129,6 @@ import java.io.InputStreamReader; import java.io.PrintWriter; import java.lang.IllegalStateException; import java.lang.ref.WeakReference; -import java.net.InetSocketAddress; import java.util.ArrayList; import java.util.Collections; import java.util.Comparator; @@ -11750,14 +11749,9 @@ public final class ActivityManagerService extends ActivityManagerNative if (starting != null) { kept = mMainStack.ensureActivityConfigurationLocked(starting, changes); - if (kept) { - // If this didn't result in the starting activity being - // destroyed, then we need to make sure at this point that all - // other activities are made visible. - if (DEBUG_SWITCH) Slog.i(TAG, "Config didn't destroy " + starting - + ", ensuring others are correct."); - mMainStack.ensureActivitiesVisibleLocked(starting, changes); - } + // And we need to make sure at this point that all other activities + // are made visible with the correct configuration. + mMainStack.ensureActivitiesVisibleLocked(starting, changes); } if (values != null && mWindowManager != null) { diff --git a/services/java/com/android/server/am/ActivityRecord.java b/services/java/com/android/server/am/ActivityRecord.java index b4e426f..caaae1f 100644 --- a/services/java/com/android/server/am/ActivityRecord.java +++ b/services/java/com/android/server/am/ActivityRecord.java @@ -413,7 +413,7 @@ class ActivityRecord extends IApplicationToken.Stub { // an application, and that application is not blocked or unresponding. // In any other case, we can't count on getting the screen unfrozen, // so it is best to leave as-is. - return app == null || (!app.crashing && !app.notResponding); + return app != null && !app.crashing && !app.notResponding; } public void startFreezingScreenLocked(ProcessRecord app, int configChanges) { |