From 76a4b305162a2b905db39e2ac7935ad9c3cd93be Mon Sep 17 00:00:00 2001 From: Manuel Martin Date: Wed, 29 Apr 2020 18:59:30 +0200 Subject: [PATCH] Make sure url bar is not focused when window is detached (#3284) --- .../shared/org/mozilla/vrbrowser/ui/views/NavigationURLBar.java | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/common/shared/org/mozilla/vrbrowser/ui/views/NavigationURLBar.java b/app/src/common/shared/org/mozilla/vrbrowser/ui/views/NavigationURLBar.java index c95fcf08a..56b0ea4e4 100644 --- a/app/src/common/shared/org/mozilla/vrbrowser/ui/views/NavigationURLBar.java +++ b/app/src/common/shared/org/mozilla/vrbrowser/ui/views/NavigationURLBar.java @@ -240,6 +240,7 @@ private void initialize(Context aContext) { public void detachFromWindow() { if (mViewModel != null) { + mViewModel.setIsFocused(false); mViewModel.getIsLoading().removeObserver(mIsLoadingObserver); mViewModel.getIsBookmarked().removeObserver(mIsBookmarkedObserver); mViewModel = null;