Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Commit

Permalink
Do not make the session inactive if we are in VR video mode (#1731)
Browse files Browse the repository at this point in the history
  • Loading branch information
keianhzo authored and MortimerGoro committed Sep 2, 2019
1 parent 2f3c8a8 commit fbec5fd
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ public void onPause() {
@Override
public void onResume() {
super.onResume();
if (isVisible()) {
if (isVisible() || mIsInVRVideoMode) {
mSessionStack.setActive(true);
}
}
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit fbec5fd

Please sign in to comment.