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

Commit 3e195d74 authored by Sunny Goyal's avatar Sunny Goyal
Browse files

Disable fake landscape UI

Bug: 131360075
Change-Id: I21e0a6cdf332e2d16821c589f9630c254b595770
parent 035770e4
Loading
Loading
Loading
Loading
+4 −0
Original line number Original line Diff line number Diff line
@@ -430,6 +430,10 @@ public class Launcher extends BaseDraggingActivity implements LauncherExterns,
        super.onConfigurationChanged(newConfig);
        super.onConfigurationChanged(newConfig);
    }
    }


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

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


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


    public static final TogglableFlag FAKE_LANDSCAPE_UI = new TogglableFlag(
    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");
            "Rotate launcher UI instead of using transposed layout");


    public static void initialize(Context context) {
    public static void initialize(Context context) {