Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 538f690f authored by Vali Calinescu's avatar Vali Calinescu Committed by Automerger Merge Worker
Browse files

Merge "Check the current runtime orientation in updateCompatDisplayInsets"...

Merge "Check the current runtime orientation in updateCompatDisplayInsets" into tm-qpr-dev am: 05557900 am: 52199b39

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



Change-Id: I88742ecc0638d770eb09c065295ccf14b99cda8a
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents b8f54f2f 52199b39
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -8118,9 +8118,7 @@ final class ActivityRecord extends WindowToken implements WindowManagerService.A
        // The smallest screen width is the short side of screen bounds. Because the bounds
        // and density won't be changed, smallestScreenWidthDp is also fixed.
        overrideConfig.smallestScreenWidthDp = fullConfig.smallestScreenWidthDp;
        // TODO(b/264276741): Check whether the runtime orietnation request is fixed rather than
        // the manifest orientation which may be obsolete.
        if (info.isFixedOrientation()) {
        if (ActivityInfo.isFixedOrientation(getOverrideOrientation())) {
            // lock rotation too. When in size-compat, onConfigurationChanged will watch for and
            // apply runtime rotation changes.
            overrideConfig.windowConfiguration.setRotation(
@@ -8300,7 +8298,7 @@ final class ActivityRecord extends WindowToken implements WindowManagerService.A
    /**
     * @return The orientation to use to understand if reachability is enabled.
     */
    @ActivityInfo.ScreenOrientation
    @Configuration.Orientation
    int getOrientationForReachability() {
        return mLetterboxUiController.hasInheritedLetterboxBehavior()
                ? mLetterboxUiController.getInheritedOrientation()
+2 −2
Original line number Diff line number Diff line
@@ -1473,7 +1473,7 @@ class WindowContainer<E extends WindowContainer> extends ConfigurationContainer<
     *         {@link Configuration#ORIENTATION_PORTRAIT},
     *         {@link Configuration#ORIENTATION_UNDEFINED}).
     */
    @ScreenOrientation
    @Configuration.Orientation
    int getRequestedConfigurationOrientation() {
        return getRequestedConfigurationOrientation(false /* forDisplay */);
    }
@@ -1491,7 +1491,7 @@ class WindowContainer<E extends WindowContainer> extends ConfigurationContainer<
     *         {@link Configuration#ORIENTATION_PORTRAIT},
     *         {@link Configuration#ORIENTATION_UNDEFINED}).
     */
    @ScreenOrientation
    @Configuration.Orientation
    int getRequestedConfigurationOrientation(boolean forDisplay) {
        int requestedOrientation = getOverrideOrientation();
        final RootDisplayArea root = getRootDisplayArea();