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

Commit 29f58020 authored by Candice Lo's avatar Candice Lo Committed by Android (Google) Code Review
Browse files

Merge "Listen to bold text setting change in onConfigurationChanged" into main

parents 868d561c 181cd4b2
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -574,13 +574,15 @@ class WindowMagnificationSettings implements MagnificationGestureDetector.OnGest
                || (configDiff & ActivityInfo.CONFIG_ASSETS_PATHS) != 0
                || (configDiff & ActivityInfo.CONFIG_FONT_SCALE) != 0
                || (configDiff & ActivityInfo.CONFIG_LOCALE) != 0
                || (configDiff & ActivityInfo.CONFIG_DENSITY) != 0) {
                || (configDiff & ActivityInfo.CONFIG_DENSITY) != 0
                || (configDiff & ActivityInfo.CONFIG_FONT_WEIGHT_ADJUSTMENT) != 0) {
            // We listen to following config changes to trigger layout inflation:
            // CONFIG_UI_MODE: theme change
            // CONFIG_ASSETS_PATHS: wallpaper change
            // CONFIG_FONT_SCALE: font size change
            // CONFIG_LOCALE: language change
            // CONFIG_DENSITY: display size change
            // CONFIG_FONT_WEIGHT_ADJUSTMENT: bold text setting change
            mParams.width = getPanelWidth(mContext);
            mParams.accessibilityTitle = getAccessibilityWindowTitle(mContext);