Skip to content

Commit

Permalink
fix menu npe
Browse files Browse the repository at this point in the history
  • Loading branch information
kawaiiDango committed Apr 21, 2024
1 parent e2306f3 commit 2a32e63
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,11 @@ class OptionsMenuDialogFragment : BottomSheetDialogFragment() {
val metadata = requireArguments().getSingle<OptionsMenuMetadata>()!!
binding.optionsMenuNav.inflateMenu(metadata.menuRes)

binding.optionsMenuNav.menu.findItem(R.id.nav_pro).isVisible =
binding.optionsMenuNav.menu.findItem(R.id.nav_pro)?.isVisible =
!billingViewModel.proStatus.value

mainNotifierViewModel.updateCanIndex()
binding.optionsMenuNav.menu.findItem(R.id.nav_do_index).isVisible =
binding.optionsMenuNav.menu.findItem(R.id.nav_do_index)?.isVisible =
mainNotifierViewModel.canIndex.value && BuildConfig.DEBUG

if (metadata.showHeader) {
Expand Down

0 comments on commit 2a32e63

Please sign in to comment.