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

Commit 8a40ff85 authored by Lucas Dupin's avatar Lucas Dupin
Browse files

Do not re-inflate QS and SB when CONFIG_UI_MODE

FragmentHostManager has 2 clients:
- CollapsedStatusBarFragment
- QSFragment

None of them respond to dark theme changes because:
- SB has its own color management queue
- QSFragment always has dark theme in S

This drastically reduces the amount of jank when siwtching themes,
because tiles won't be re-created anymore.

Test: toggle dark theme from QS, open various apps
Test: toggle dark theme from Settings app
Bug: 185403130
Change-Id: I95ed3e586050d12d571877d0a058714fb011b6fc
parent 79ce03a8
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -54,8 +54,7 @@ public class FragmentHostManager {
    private final View mRootView;
    private final InterestingConfigChanges mConfigChanges = new InterestingConfigChanges(
            ActivityInfo.CONFIG_FONT_SCALE | ActivityInfo.CONFIG_LOCALE
                | ActivityInfo.CONFIG_SCREEN_LAYOUT | ActivityInfo.CONFIG_ASSETS_PATHS
                | ActivityInfo.CONFIG_UI_MODE);
                | ActivityInfo.CONFIG_SCREEN_LAYOUT | ActivityInfo.CONFIG_ASSETS_PATHS);
    private final FragmentService mManager;
    private final ExtensionFragmentManager mPlugins = new ExtensionFragmentManager();