From 85ab9b82e05664f28d0a3310508bd882ee2a80e0 Mon Sep 17 00:00:00 2001 From: "Randall E. Barker" Date: Wed, 28 Aug 2019 00:00:27 -0700 Subject: [PATCH] Unregister PrivacyOptionsView ActivityLifecycleCallbacks on activity destruction. Fixes #1627 (#1686) --- .../vrbrowser/ui/widgets/settings/PrivacyOptionsView.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/common/shared/org/mozilla/vrbrowser/ui/widgets/settings/PrivacyOptionsView.java b/app/src/common/shared/org/mozilla/vrbrowser/ui/widgets/settings/PrivacyOptionsView.java index 4a5c63dd6..feef16981 100644 --- a/app/src/common/shared/org/mozilla/vrbrowser/ui/widgets/settings/PrivacyOptionsView.java +++ b/app/src/common/shared/org/mozilla/vrbrowser/ui/widgets/settings/PrivacyOptionsView.java @@ -296,7 +296,7 @@ public void onActivitySaveInstanceState(Activity activity, Bundle outState) { @Override public void onActivityDestroyed(Activity activity) { - + activity.getApplication().unregisterActivityLifecycleCallbacks(mLifeCycleListener); } };