Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Commit

Permalink
Make sure url bar is not focused when window is detached (#3284)
Browse files Browse the repository at this point in the history
  • Loading branch information
keianhzo authored Apr 29, 2020
1 parent 135a8ac commit 76a4b30
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 76a4b30

Please sign in to comment.