Skip to content

Commit

Permalink
Merge pull request #20967 from wordpress-mobile/issue/20859-crash
Browse files Browse the repository at this point in the history
Fix crash in PluginBrowserViewModel
  • Loading branch information
irfano authored Jun 11, 2024
2 parents 71b4b52 + c6b8452 commit 0fda3a4
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,9 @@ class ReaderFragment : Fragment(R.layout.reader_fragment_layout), ScrollableView
}

fun requestBookmarkTab() {
if (!::viewModel.isInitialized) {
viewModel = ViewModelProvider(this@ReaderFragment, viewModelFactory)[ReaderViewModel::class.java]
}
viewModel.bookmarkTabRequested()
}

Expand Down

0 comments on commit 0fda3a4

Please sign in to comment.