| Index: chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellDelegate.java
|
| diff --git a/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellDelegate.java b/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellDelegate.java
|
| index f6e64a4cc65b62b71e712a31e74195dfaa677c0c..b205865c779640f656627121684b20f67e6f0aa3 100644
|
| --- a/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellDelegate.java
|
| +++ b/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellDelegate.java
|
| @@ -535,7 +535,9 @@ public class VrShellDelegate implements ApplicationStatus.ActivityStateListener,
|
| private boolean isWindowModeCorrectForVr() {
|
| int flags = mActivity.getWindow().getDecorView().getSystemUiVisibility();
|
| int orientation = mActivity.getResources().getConfiguration().orientation;
|
| - return flags == VR_SYSTEM_UI_FLAGS && orientation == Configuration.ORIENTATION_LANDSCAPE;
|
| + // Mask the flags to only those that we care about.
|
| + return (flags & VR_SYSTEM_UI_FLAGS) == VR_SYSTEM_UI_FLAGS
|
| + && orientation == Configuration.ORIENTATION_LANDSCAPE;
|
| }
|
|
|
| private void setWindowModeForVr(int requestedOrientation) {
|
|
|