Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0920ba5e authored by Casey Burkhardt's avatar Casey Burkhardt Committed by Charles Chen
Browse files

Fixing font scale in WindowManagerService.

There was a bug that causes WindowManagerService to lose
the fontScale setting.

This fix submitted on behalf of Casey Burkhardt.

Change-Id: I3a76de15adf13badc5efca8d620d14c972a96ec4
parent 532abb65
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -3093,8 +3093,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;