Remove Allow Rotation in foldables
Fix: 380128987 Flag: com.android.launcher3.one_grid_specs Test: NA Change-Id: I4bdb495b57fa7d638dde3fe47e853f3505f63628
This commit is contained in:
1 parent
16c14327ea
commit
cb8f82a9fd
1 file changed
+1
-1
@@ -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