Using the right context when in FixedLandscape

Fix: 378956881
Test: HomeScreenImageTest
Flag: com.android.launcher3.one_grid_specs
Change-Id: I57c0fb2b57828e0cb80d20417f0a45e49c78b80e
This commit is contained in:
Sebastian Franco authored and Federico Baron committed 2024-12-04 23:51:34 +00:00
1 parent 2909e72d36
commit 789546f528
1 file changed
+3 -1
+3 -1
View File
@@ -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);