DO NOT MERGE
This is a manual cherrypick of: Change I3a76de15: Fixing font scale in WindowManagerService. There was a bug that causes WindowManagerService to lose the fontScale setting. Change-Id: I9b993e11f6a3e75735d8ed05596083893543d732
This commit is contained in:
parent
68ef7f3c3a
commit
4fc3d2f0b3
@@ -3102,8 +3102,11 @@ public class WindowManagerService extends IWindowManager.Stub
|
||||
|
||||
} else if (currentConfig != null) {
|
||||
// No obvious action we need to take, but if our current
|
||||
// state mismatches the activity maanager's, update it
|
||||
// state mismatches the activity manager's, update it,
|
||||
// disregarding font scale, which should remain set to
|
||||
// the value of the previous configuration.
|
||||
mTempConfiguration.setToDefaults();
|
||||
mTempConfiguration.fontScale = currentConfig.fontScale;
|
||||
if (computeNewConfigurationLocked(mTempConfiguration)) {
|
||||
if (currentConfig.diff(mTempConfiguration) != 0) {
|
||||
mWaitingForConfig = true;
|
||||
|
||||
Reference in New Issue
Block a user