diff --git a/app/src/common/shared/com/igalia/wolvic/ui/widgets/NavigationBarWidget.java b/app/src/common/shared/com/igalia/wolvic/ui/widgets/NavigationBarWidget.java index d52200c62d..31201d8337 100644 --- a/app/src/common/shared/com/igalia/wolvic/ui/widgets/NavigationBarWidget.java +++ b/app/src/common/shared/com/igalia/wolvic/ui/widgets/NavigationBarWidget.java @@ -99,7 +99,7 @@ public class NavigationBarWidget extends UIWidget implements WSession.Navigation private static final int POPUP_NOTIFICATION_ID = 3; private static final int WEB_APP_ADDED_NOTIFICATION_ID = 4; - private static boolean disabledHeadlockForVR; + private static boolean disabledHeadlockForVRVideo; public interface NavigationListener { void onBack(); @@ -686,7 +686,7 @@ public void onMediaFullScreen(@NonNull WMediaSession mediaSession, boolean aFull SettingsStore settingsStore = SettingsStore.getInstance(getContext()); if (settingsStore.isHeadLockEnabled()) { settingsStore.setHeadLockEnabled(false); - disabledHeadlockForVR = true; + disabledHeadlockForVRVideo = true; } mViewModel.setAutoEnteredVRVideo(true); @@ -704,7 +704,7 @@ public void onMediaFullScreen(@NonNull WMediaSession mediaSession, boolean aFull if (isInVRVideo()) { exitVRVideo(); - if (disabledHeadlockForVR) { + if (disabledHeadlockForVRVideo) { SettingsStore.getInstance(getContext()).setHeadLockEnabled(true); } } @@ -769,7 +769,7 @@ private void enterFullScreenMode() { SettingsStore settingsStore = SettingsStore.getInstance(getContext()); if (settingsStore.isHeadLockEnabled()) { settingsStore.setHeadLockEnabled(false); - disabledHeadlockForVR = true; + disabledHeadlockForVRVideo = true; } // Reproject while reproducing VRVideo @@ -780,7 +780,7 @@ private void enterFullScreenMode() { SettingsStore settingsStore = SettingsStore.getInstance(getContext()); if (settingsStore.isHeadLockEnabled()) { settingsStore.setHeadLockEnabled(false); - disabledHeadlockForVR = true; + disabledHeadlockForVRVideo = true; } enterVRVideo(projection); } @@ -1019,7 +1019,7 @@ private void exitVRVideo() { // Reposition UI in front of the user when exiting a VR video. mWidgetManager.recenterUIYaw(WidgetManagerDelegate.YAW_TARGET_ALL); - if (disabledHeadlockForVR) { + if (disabledHeadlockForVRVideo) { SettingsStore.getInstance(getContext()).setHeadLockEnabled(true); } }