From 7dbc5f19cd1e44847e8cc1ff6b1069c2e416f004 Mon Sep 17 00:00:00 2001 From: Imanol Fernandez Date: Tue, 10 Dec 2019 16:06:09 +0100 Subject: [PATCH] Reposition UI in front of the user when exiting a VR video. --- .../org/mozilla/vrbrowser/ui/widgets/NavigationBarWidget.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/common/shared/org/mozilla/vrbrowser/ui/widgets/NavigationBarWidget.java b/app/src/common/shared/org/mozilla/vrbrowser/ui/widgets/NavigationBarWidget.java index be1fa4831..743526735 100644 --- a/app/src/common/shared/org/mozilla/vrbrowser/ui/widgets/NavigationBarWidget.java +++ b/app/src/common/shared/org/mozilla/vrbrowser/ui/widgets/NavigationBarWidget.java @@ -708,6 +708,9 @@ private void exitVRVideo() { mAttachedWindow.disableVRVideoMode(); mAttachedWindow.setVisible(true); mMediaControlsWidget.setVisible(false); + + // Reposition UI in front of the user when exiting a VR video. + mWidgetManager.resetUIYaw(); } private void setResizePreset(float aMultiplier) {