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

Commit c1070e76 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Don't send SCREEN_ORIENTATION_UNSET to apps."

parents 047c0136 b198b74c
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -1103,6 +1103,11 @@ class AppWindowToken extends WindowToken implements WindowManagerService.AppFree
        return mOrientation;
    }

    /** Returns the app's preferred orientation regardless of its currently visibility state. */
    int getOrientationIgnoreVisibility() {
        return mOrientation;
    }

    @Override
    void checkAppWindowsReadyToShow() {
        if (allDrawn == mAppAnimator.allDrawn) {
+1 −1
Original line number Diff line number Diff line
@@ -2716,7 +2716,7 @@ public class WindowManagerService extends IWindowManager.Stub
                return SCREEN_ORIENTATION_UNSPECIFIED;
            }

            return wtoken.getOrientation();
            return wtoken.getOrientationIgnoreVisibility();
        }
    }