DO NOT MERGE. Integrate from MR 1 to fix issue #5366535: Lockscreen...
...has wrong layout but corrects itself Maybe fix issue #5405788: Device continuously opening and closing... ...the "Complete action using" dialog I have never been able to reproduce this consistently, but here is another stab in the twilight. It looks like during boot we have a potential race where we could reset the config sequence number after we had gone through a config change, causing ActivityThread to ignore a following config change. Maybe this change will help. Change-Id: I7199b6de370488e8d897d6a78ff6f15624da862c
This commit is contained in:
@@ -529,7 +529,7 @@ final class ActivityStack {
|
||||
Configuration config = mService.mWindowManager.updateOrientationFromAppTokens(
|
||||
mService.mConfiguration,
|
||||
r.mayFreezeScreenLocked(app) ? r : null);
|
||||
mService.updateConfigurationLocked(config, r, false);
|
||||
mService.updateConfigurationLocked(config, r, false, false);
|
||||
}
|
||||
|
||||
r.app = app;
|
||||
@@ -591,7 +591,8 @@ final class ActivityStack {
|
||||
}
|
||||
}
|
||||
app.thread.scheduleLaunchActivity(new Intent(r.intent), r,
|
||||
System.identityHashCode(r), r.info, mService.mConfiguration,
|
||||
System.identityHashCode(r), r.info,
|
||||
new Configuration(mService.mConfiguration),
|
||||
r.compat, r.icicle, results, newIntents, !andResume,
|
||||
mService.isNextTransitionForward(), profileFile, profileFd,
|
||||
profileAutoStop);
|
||||
@@ -1453,7 +1454,7 @@ final class ActivityStack {
|
||||
if (config != null) {
|
||||
next.frozenBeforeDestroy = true;
|
||||
}
|
||||
updated = mService.updateConfigurationLocked(config, next, false);
|
||||
updated = mService.updateConfigurationLocked(config, next, false, false);
|
||||
}
|
||||
}
|
||||
if (!updated) {
|
||||
@@ -2900,7 +2901,7 @@ final class ActivityStack {
|
||||
mConfigWillChange = false;
|
||||
if (DEBUG_CONFIGURATION) Slog.v(TAG,
|
||||
"Updating to new configuration after starting activity.");
|
||||
mService.updateConfigurationLocked(config, null, false);
|
||||
mService.updateConfigurationLocked(config, null, false, false);
|
||||
}
|
||||
|
||||
Binder.restoreCallingIdentity(origId);
|
||||
@@ -4171,7 +4172,7 @@ final class ActivityStack {
|
||||
if (DEBUG_SWITCH) Slog.i(TAG, "Switch is restarting resumed " + r);
|
||||
r.forceNewConfig = false;
|
||||
r.app.thread.scheduleRelaunchActivity(r, results, newIntents,
|
||||
changes, !andResume, mService.mConfiguration);
|
||||
changes, !andResume, new Configuration(mService.mConfiguration));
|
||||
// Note: don't need to call pauseIfSleepingLocked() here, because
|
||||
// the caller will only pass in 'andResume' if this activity is
|
||||
// currently resumed, which implies we aren't sleeping.
|
||||
|
||||
Reference in New Issue
Block a user