From 0f08ec1a4ff976386b0e2fc501278296b5ed7dd4 Mon Sep 17 00:00:00 2001 From: "Randall E. Barker" Date: Mon, 18 May 2020 12:49:36 -0700 Subject: [PATCH] Always exit on activity destroy --- .../common/shared/org/mozilla/vrbrowser/VRBrowserActivity.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/common/shared/org/mozilla/vrbrowser/VRBrowserActivity.java b/app/src/common/shared/org/mozilla/vrbrowser/VRBrowserActivity.java index 270fc8e94..ec6d29476 100644 --- a/app/src/common/shared/org/mozilla/vrbrowser/VRBrowserActivity.java +++ b/app/src/common/shared/org/mozilla/vrbrowser/VRBrowserActivity.java @@ -539,6 +539,9 @@ protected void onDestroy() { super.onDestroy(); mLifeCycle.setCurrentState(Lifecycle.State.DESTROYED); mViewModelStore.clear(); + // Always exit to work around https://github.com/MozillaReality/FirefoxReality/issues/3363 + finish(); + System.exit(0); } @Override