Skip to content

Commit

Permalink
Initialize view model url when the window is created (#2874)
Browse files Browse the repository at this point in the history
  • Loading branch information
MortimerGoro committed Feb 26, 2020
1 parent c494e33 commit 1dd10d3
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -170,6 +170,7 @@ private void initialize(Context aContext) {
ViewModelProvider.AndroidViewModelFactory.getInstance(((VRBrowserActivity) getContext()).getApplication()))
.get(String.valueOf(hashCode()), WindowViewModel.class);
mViewModel.setIsPrivateSession(mSession.isPrivateMode());
mViewModel.setUrl(mSession.getCurrentUri());

mUIThreadExecutor = ((VRBrowserApplication)getContext().getApplicationContext()).getExecutors().mainThread();

Expand Down

0 comments on commit 1dd10d3

Please sign in to comment.