mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-03 09:26:51 +00:00
Remove Allow Rotation in foldables
Fix: 380128987 Flag: com.android.launcher3.one_grid_specs Test: NA Change-Id: I4bdb495b57fa7d638dde3fe47e853f3505f63628
This commit is contained in:
@@ -785,7 +785,7 @@ public class Launcher extends StatefulActivity<LauncherState>
|
||||
}
|
||||
// When the flag oneGridSpecs is on we want to disable ALLOW_ROTATION which is replaced
|
||||
// by FIXED_LANDSCAPE_MODE, ALLOW_ROTATION will only be used on Tablets afterwards.
|
||||
if (!getDeviceProfile().isTablet) {
|
||||
if (getDeviceProfile().isPhone || getDeviceProfile().isTwoPanels) {
|
||||
LauncherPrefs.get(this).put(LauncherPrefs.ALLOW_ROTATION, false);
|
||||
}
|
||||
getRotationHelper().setFixedLandscape(
|
||||
|
||||
Reference in New Issue
Block a user