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

Commit 093cf62e authored by Brandon Dayauon's avatar Brandon Dayauon Committed by Android (Google) Code Review
Browse files

Merge "Force config update when twoline is toggled." into main

parents 1758aa68 05105162
Loading
Loading
Loading
Loading
+10 −1
Original line number Diff line number Diff line
@@ -412,6 +412,7 @@ public class Launcher extends StatefulActivity<LauncherState>

    private final List<BackPressHandler> mBackPressedHandlers = new ArrayList<>();
    private boolean mIsColdStartupAfterReboot;
    private boolean mForceConfigUpdate;

    private boolean mIsNaturalScrollingEnabled;

@@ -756,7 +757,7 @@ public class Launcher extends StatefulActivity<LauncherState>
    protected void onHandleConfigurationChanged() {
        Trace.beginSection("Launcher#onHandleconfigurationChanged");
        try {
            if (!initDeviceProfile(mDeviceProfile.inv)) {
            if (!initDeviceProfile(mDeviceProfile.inv) && !mForceConfigUpdate) {
                return;
            }

@@ -770,6 +771,7 @@ public class Launcher extends StatefulActivity<LauncherState>
            mModel.rebindCallbacks();
            updateDisallowBack();
        } finally {
            mForceConfigUpdate = false;
            Trace.endSection();
        }
    }
@@ -3151,6 +3153,13 @@ public class Launcher extends StatefulActivity<LauncherState>
        return mAnimationCoordinator;
    }

    /**
     * Set to force config update when set to true next time onHandleConfigurationChanged is called.
     */
    public void setForceConfigUpdate(boolean forceConfigUpdate) {
        mForceConfigUpdate = forceConfigUpdate;
    }

    @Override
    public View.OnLongClickListener getAllAppsItemLongClickListener() {
        return ItemLongClickListener.INSTANCE_ALL_APPS;