diff --git a/app/src/common/shared/org/mozilla/vrbrowser/VRBrowserActivity.java b/app/src/common/shared/org/mozilla/vrbrowser/VRBrowserActivity.java index 284a88250..dcda0d820 100644 --- a/app/src/common/shared/org/mozilla/vrbrowser/VRBrowserActivity.java +++ b/app/src/common/shared/org/mozilla/vrbrowser/VRBrowserActivity.java @@ -973,8 +973,11 @@ void resumeGeckoViewCompositor() { GleanMetricsService.stopImmersive(); Handler handler = new Handler(Looper.getMainLooper()); handler.postDelayed(() -> { - mWindows.resumeCompositor(); - Log.d(LOGTAG, "Compositor Resumed"); + if (!mWindows.isPaused()) { + Log.d(LOGTAG, "Compositor resume begin"); + mWindows.resumeCompositor(); + Log.d(LOGTAG, "Compositor resume end"); + } }, 20); } diff --git a/app/src/common/shared/org/mozilla/vrbrowser/ui/widgets/Windows.java b/app/src/common/shared/org/mozilla/vrbrowser/ui/widgets/Windows.java index 6f320ef4b..873d7fc3c 100644 --- a/app/src/common/shared/org/mozilla/vrbrowser/ui/widgets/Windows.java +++ b/app/src/common/shared/org/mozilla/vrbrowser/ui/widgets/Windows.java @@ -458,6 +458,10 @@ public void onResume() { TelemetryWrapper.resetOpenedWindowsCount(mPrivateWindows.size(), true); } + public boolean isPaused() { + return mIsPaused; + } + public void onDestroy() { if (mTabsWidget != null && !mTabsWidget.isReleased()) { mTabsWidget.releaseWidget();