Merge "Using the right context when in FixedLandscape" into main

This commit is contained in:
Sebastián Franco
2024-12-05 12:54:52 +00:00
committed by Android (Google) Code Review
+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);