Skip to content

Commit

Permalink
refactor #605 Use parentFragmentManager.
Browse files Browse the repository at this point in the history
  • Loading branch information
toastkidjp committed Aug 19, 2020
1 parent d4bbe2a commit 981ea1b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ class BookmarkFragment: Fragment(),
}

override fun onOptionsItemSelected(item: MenuItem): Boolean {
val fragmentManager = fragmentManager ?: return true
val fragmentManager = parentFragmentManager ?: return true
return when (item.itemId) {
R.id.clear -> {
BookmarkClearDialogFragment()
Expand Down

0 comments on commit 981ea1b

Please sign in to comment.