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

Commit 1ce2c16

Browse files
authored
Maintain projection menu state between views. Fixes #1807 Fixes #1808 (#1820)
1 parent 3ae64f9 commit 1ce2c16

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

app/src/common/shared/org/mozilla/vrbrowser/ui/widgets/NavigationBarWidget.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -656,7 +656,10 @@ private void exitVRVideo() {
656656
mIsInVRVideo = false;
657657
mWidgetManager.popBackHandler(mVRVideoBackHandler);
658658
mWidgetManager.hideVRVideo();
659+
boolean firstDraw = mProjectionMenu.getPlacement().firstDraw;
659660
mProjectionMenu.getPlacement().copyFrom(mProjectionMenuPlacement);
661+
mProjectionMenu.getPlacement().firstDraw = firstDraw;
662+
mWidgetManager.updateWidget(mProjectionMenu);
660663
closeFloatingMenus();
661664
mWidgetManager.setControllersVisible(true);
662665

0 commit comments

Comments
 (0)