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

Commit 84696411 authored by Sunny Goyal's avatar Sunny Goyal Committed by android-build-merger
Browse files

Disable fake landscape UI

am: 3e195d74

Change-Id: Ie12781c525420397e3e474a36e0ea0ec33bf8649
parents 92af1789 3e195d74
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -430,6 +430,10 @@ public class Launcher extends BaseDraggingActivity implements LauncherExterns,
        super.onConfigurationChanged(newConfig);
    }

    public void reload() {
        onIdpChanged(mDeviceProfile.inv);
    }

    private boolean supportsFakeLandscapeUI() {
        return FeatureFlags.FAKE_LANDSCAPE_UI.get() && !mRotationHelper.homeScreenCanRotate();
    }
+2 −1
Original line number Diff line number Diff line
@@ -301,7 +301,8 @@ public class LauncherModel extends BroadcastReceiver
                }
            }
        } else if (IS_DOGFOOD_BUILD && ACTION_FORCE_ROLOAD.equals(action)) {
            forceReload();
            Launcher l = (Launcher) getCallback();
            l.reload();
        }
    }

+1 −1
Original line number Diff line number Diff line
@@ -109,7 +109,7 @@ abstract class BaseFlags {
            "Show chip hints and gleams on the overview screen");

    public static final TogglableFlag FAKE_LANDSCAPE_UI = new TogglableFlag(
            "FAKE_LANDSCAPE_UI", true,
            "FAKE_LANDSCAPE_UI", false,
            "Rotate launcher UI instead of using transposed layout");

    public static void initialize(Context context) {