From 789546f528cfb791c4b30c7be67c97473e41f0fa Mon Sep 17 00:00:00 2001 From: Sebastian Franco Date: Tue, 26 Nov 2024 14:49:34 -0800 Subject: [PATCH] Using the right context when in FixedLandscape Fix: 378956881 Test: HomeScreenImageTest Flag: com.android.launcher3.one_grid_specs Change-Id: I57c0fb2b57828e0cb80d20417f0a45e49c78b80e --- src/com/android/launcher3/DeviceProfile.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/com/android/launcher3/DeviceProfile.java b/src/com/android/launcher3/DeviceProfile.java index 16d9525b38..f1274dc74a 100644 --- a/src/com/android/launcher3/DeviceProfile.java +++ b/src/com/android/launcher3/DeviceProfile.java @@ -425,7 +425,9 @@ public class DeviceProfile { && WindowManagerProxy.INSTANCE.get(context).isTaskbarDrawnInProcess(); // Some more constants. - context = getContext(context, info, isVerticalBarLayout() || (isTablet && isLandscape) + context = getContext(context, info, inv.isFixedLandscape + || isVerticalBarLayout() + || (isTablet && isLandscape) ? Configuration.ORIENTATION_LANDSCAPE : Configuration.ORIENTATION_PORTRAIT, windowBounds);