diff --git a/app/src/common/shared/org/mozilla/vrbrowser/VRBrowserActivity.java b/app/src/common/shared/org/mozilla/vrbrowser/VRBrowserActivity.java index 6f2c68bf1..a7fd6b3a0 100644 --- a/app/src/common/shared/org/mozilla/vrbrowser/VRBrowserActivity.java +++ b/app/src/common/shared/org/mozilla/vrbrowser/VRBrowserActivity.java @@ -961,7 +961,8 @@ void pauseGeckoViewCompositor() { return; } mIsPresentingImmersive = true; - mWindows.enterImmersiveMode(); + runOnUiThread(() -> mWindows.enterImmersiveMode()); + TelemetryWrapper.startImmersive(); GleanMetricsService.startImmersive(); PauseCompositorRunnable runnable = new PauseCompositorRunnable(); @@ -985,7 +986,8 @@ void resumeGeckoViewCompositor() { return; } mIsPresentingImmersive = false; - mWindows.exitImmersiveMode(); + runOnUiThread(() -> mWindows.exitImmersiveMode()); + // Show the window in front of you when you exit immersive mode. resetUIYaw();