From fbec5fd78d2afaac7f1b62f2fd6ccf4df5e7fa82 Mon Sep 17 00:00:00 2001 From: Manuel Martin Date: Mon, 2 Sep 2019 11:30:09 +0200 Subject: [PATCH] Do not make the session inactive if we are in VR video mode (#1731) --- .../org/mozilla/vrbrowser/ui/widgets/WindowWidget.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/src/common/shared/org/mozilla/vrbrowser/ui/widgets/WindowWidget.java b/app/src/common/shared/org/mozilla/vrbrowser/ui/widgets/WindowWidget.java index 828c10ee1..e744c51dc 100644 --- a/app/src/common/shared/org/mozilla/vrbrowser/ui/widgets/WindowWidget.java +++ b/app/src/common/shared/org/mozilla/vrbrowser/ui/widgets/WindowWidget.java @@ -248,7 +248,7 @@ public void onPause() { @Override public void onResume() { super.onResume(); - if (isVisible()) { + if (isVisible() || mIsInVRVideoMode) { mSessionStack.setActive(true); } } @@ -851,7 +851,9 @@ public void setVisible(boolean aVisible) { if (mWidgetPlacement.visible == aVisible) { return; } - mSessionStack.setActive(aVisible); + if (!mIsInVRVideoMode) { + mSessionStack.setActive(aVisible); + } mWidgetPlacement.visible = aVisible; if (!aVisible) { if (mIsBookmarksVisible || mIsHistoryVisible) {