Merge "Avoid applying window config from updating persistent config" into sc-v2-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
caa65e4a70
@@ -4066,6 +4066,9 @@ public class ActivityTaskManagerService extends IActivityTaskManager.Stub {
|
|||||||
final long origId = Binder.clearCallingIdentity();
|
final long origId = Binder.clearCallingIdentity();
|
||||||
try {
|
try {
|
||||||
synchronized (mGlobalLock) {
|
synchronized (mGlobalLock) {
|
||||||
|
// Window configuration is unrelated to persistent configuration (e.g. font scale,
|
||||||
|
// locale). Unset it to avoid affecting the current display configuration.
|
||||||
|
values.windowConfiguration.setToDefaults();
|
||||||
updateConfigurationLocked(values, null, false, true, userId,
|
updateConfigurationLocked(values, null, false, true, userId,
|
||||||
false /* deferResume */);
|
false /* deferResume */);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5728,7 +5728,8 @@ class DisplayContent extends RootDisplayArea implements WindowManagerPolicy.Disp
|
|||||||
final Configuration currOverrideConfig = getRequestedOverrideConfiguration();
|
final Configuration currOverrideConfig = getRequestedOverrideConfiguration();
|
||||||
final int currRotation = currOverrideConfig.windowConfiguration.getRotation();
|
final int currRotation = currOverrideConfig.windowConfiguration.getRotation();
|
||||||
final int overrideRotation = overrideConfiguration.windowConfiguration.getRotation();
|
final int overrideRotation = overrideConfiguration.windowConfiguration.getRotation();
|
||||||
if (currRotation != ROTATION_UNDEFINED && currRotation != overrideRotation) {
|
if (currRotation != ROTATION_UNDEFINED && overrideRotation != ROTATION_UNDEFINED
|
||||||
|
&& currRotation != overrideRotation) {
|
||||||
applyRotationAndFinishFixedRotation(currRotation, overrideRotation);
|
applyRotationAndFinishFixedRotation(currRotation, overrideRotation);
|
||||||
}
|
}
|
||||||
mCurrentOverrideConfigurationChanges = currOverrideConfig.diff(overrideConfiguration);
|
mCurrentOverrideConfigurationChanges = currOverrideConfig.diff(overrideConfiguration);
|
||||||
|
|||||||
Reference in New Issue
Block a user