From 6e6c2527eec4f907d5f2fb72b8a7fa696d94464b Mon Sep 17 00:00:00 2001 From: Pun Butrach Date: Sun, 22 Mar 2026 18:35:37 +0700 Subject: [PATCH] fix: Don't force device rotation prefs to false on phone Signed-off-by: Pun Butrach --- src/com/android/launcher3/Launcher.java | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/com/android/launcher3/Launcher.java b/src/com/android/launcher3/Launcher.java index 300e26e390..6ecbcf766f 100644 --- a/src/com/android/launcher3/Launcher.java +++ b/src/com/android/launcher3/Launcher.java @@ -706,9 +706,14 @@ public class Launcher extends StatefulActivity // 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 and foldables // afterwards. - if (getDeviceProfile().getDeviceProperties().isPhone()) { - LauncherPrefs.get(this).put(LauncherPrefs.ALLOW_ROTATION, false); - } else if (getDeviceProfile().getDeviceProperties().isTablet()) { +// if (getDeviceProfile().getDeviceProperties().isPhone()) { +// LauncherPrefs.get(this).put(LauncherPrefs.ALLOW_ROTATION, false); +// } else if (getDeviceProfile().getDeviceProperties().isTablet()) { + + // pE-TODO(oneGridSpec): Investigate! + // + // LC-Note: Don't rotation prefs to false on phones! See original code above + if (getDeviceProfile().getDeviceProperties().isTablet()) { // Tablet do not use fixed landscape mode, make sure it can't be activated by mistake LauncherPrefs.get(this).put(FIXED_LANDSCAPE_MODE, false); }