diff --git a/app/src/main/java/com/arn/scrobble/main/OptionsMenuDialogFragment.kt b/app/src/main/java/com/arn/scrobble/main/OptionsMenuDialogFragment.kt index 26e118a0..844a8730 100644 --- a/app/src/main/java/com/arn/scrobble/main/OptionsMenuDialogFragment.kt +++ b/app/src/main/java/com/arn/scrobble/main/OptionsMenuDialogFragment.kt @@ -47,11 +47,11 @@ class OptionsMenuDialogFragment : BottomSheetDialogFragment() { val metadata = requireArguments().getSingle()!! 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) {