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

Commit 38bbd5aa authored by Jason Monk's avatar Jason Monk Committed by android-build-merger
Browse files

Merge "Fix up some jank from unnecessary reinflation" into oc-dev am: f6e20990

am: 2638ae16

Change-Id: I7101f1442145ef41008a7e890e811df8db2a7e50
parents fbaee137 2638ae16
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -26,13 +26,13 @@ public class InterestingConfigChanges {
    private int mLastDensity;

    public InterestingConfigChanges() {
        this(0);
        this(ActivityInfo.CONFIG_LOCALE
                | ActivityInfo.CONFIG_UI_MODE | ActivityInfo.CONFIG_SCREEN_LAYOUT
                | ActivityInfo.CONFIG_ASSETS_PATHS);
    }

    public InterestingConfigChanges(int extraFlags) {
        mFlags = extraFlags | ActivityInfo.CONFIG_LOCALE
                | ActivityInfo.CONFIG_UI_MODE | ActivityInfo.CONFIG_SCREEN_LAYOUT
                | ActivityInfo.CONFIG_ASSETS_PATHS;
    public InterestingConfigChanges(int flags) {
        mFlags = flags;
    }

    public boolean applyNewConfig(Resources res) {
+3 −1
Original line number Diff line number Diff line
@@ -92,7 +92,9 @@ public class AssistManager implements ConfigurationChangedReceiver {
        mAssistDisclosure = new AssistDisclosure(context, new Handler());

        registerVoiceInteractionSessionListener();
        mInterestingConfigChanges = new InterestingConfigChanges(ActivityInfo.CONFIG_ORIENTATION);
        mInterestingConfigChanges = new InterestingConfigChanges(ActivityInfo.CONFIG_ORIENTATION
                | ActivityInfo.CONFIG_LOCALE | ActivityInfo.CONFIG_UI_MODE
                | ActivityInfo.CONFIG_SCREEN_LAYOUT | ActivityInfo.CONFIG_ASSETS_PATHS);
        onConfigurationChanged(context.getResources().getConfiguration());
    }

+2 −1
Original line number Diff line number Diff line
@@ -50,7 +50,8 @@ public class FragmentHostManager {
    private final HashMap<String, ArrayList<FragmentListener>> mListeners = new HashMap<>();
    private final View mRootView;
    private final InterestingConfigChanges mConfigChanges = new InterestingConfigChanges(
            ActivityInfo.CONFIG_FONT_SCALE);
            ActivityInfo.CONFIG_FONT_SCALE | ActivityInfo.CONFIG_LOCALE
                | ActivityInfo.CONFIG_SCREEN_LAYOUT | ActivityInfo.CONFIG_ASSETS_PATHS);
    private final FragmentService mManager;
    private final ExtensionFragmentManager mPlugins = new ExtensionFragmentManager();

+2 −1
Original line number Diff line number Diff line
@@ -60,7 +60,8 @@ public class VolumeDialogComponent implements VolumeComponent, TunerService.Tuna
    private final Context mContext;
    private final VolumeDialogControllerImpl mController;
    private final InterestingConfigChanges mConfigChanges = new InterestingConfigChanges(
            ActivityInfo.CONFIG_FONT_SCALE);
            ActivityInfo.CONFIG_FONT_SCALE | ActivityInfo.CONFIG_LOCALE
            | ActivityInfo.CONFIG_ASSETS_PATHS);
    private final Extension mExtension;
    private VolumeDialog mDialog;
    private VolumePolicy mVolumePolicy = new VolumePolicy(