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

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/21442504

Change-Id: I227092bb265966429065d69219120bd75805d6d6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Mariia Sandrikova
2023-02-17 13:56:08 +00:00
committed by Automerger Merge Worker

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