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 3140ea2a30068689a6b33191498948d3a183dd4d..2a17e74ce1b6079d0baaa3c6411777e217a3b203 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 |
@@ -533,7 +533,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 |
billorr1
2017/05/16 21:50:05
Are there any flags we want to ensure are not set?
mthiesse
2017/05/16 21:56:14
We probably want to make sure that we don't have S
amp
2017/05/16 22:19:54
I'm not sure. It's possible we may have to adjust
|
+ && orientation == Configuration.ORIENTATION_LANDSCAPE; |
} |
private void setWindowModeForVr(int requestedOrientation) { |