Merge "Don't send SCREEN_ORIENTATION_UNSET to apps."

This commit is contained in:
TreeHugger Robot
2016-12-02 00:57:47 +00:00
committed by Android (Google) Code Review
2 changed files with 6 additions and 1 deletions

View File

@@ -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) {

View File

@@ -2716,7 +2716,7 @@ public class WindowManagerService extends IWindowManager.Stub
return SCREEN_ORIENTATION_UNSPECIFIED;
}
return wtoken.getOrientation();
return wtoken.getOrientationIgnoreVisibility();
}
}