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
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user