Merge "Allow to move SCM Letterbox with Taskbar visible" into tm-qpr-dev

This commit is contained in:
Mariia Sandrikova
2023-02-17 12:44:49 +00:00
committed by Android (Google) Code Review

View File

@@ -962,8 +962,8 @@ final class LetterboxUiController {
&& (parentConfiguration.orientation == ORIENTATION_LANDSCAPE && (parentConfiguration.orientation == ORIENTATION_LANDSCAPE
&& mActivityRecord.getOrientationForReachability() == ORIENTATION_PORTRAIT) && mActivityRecord.getOrientationForReachability() == ORIENTATION_PORTRAIT)
// Check whether the activity fills the parent vertically. // Check whether the activity fills the parent vertically.
&& parentConfiguration.windowConfiguration.getBounds().height() && parentConfiguration.windowConfiguration.getAppBounds().height()
== mActivityRecord.getBounds().height(); <= mActivityRecord.getBounds().height();
} }
@VisibleForTesting @VisibleForTesting