diff --git a/network-protection/network-protection-impl/src/main/java/com/duckduckgo/networkprotection/impl/exclusion/ui/NetpAppExclusionListActivity.kt b/network-protection/network-protection-impl/src/main/java/com/duckduckgo/networkprotection/impl/exclusion/ui/NetpAppExclusionListActivity.kt index 74c87aee82ad..d84a49997769 100644 --- a/network-protection/network-protection-impl/src/main/java/com/duckduckgo/networkprotection/impl/exclusion/ui/NetpAppExclusionListActivity.kt +++ b/network-protection/network-protection-impl/src/main/java/com/duckduckgo/networkprotection/impl/exclusion/ui/NetpAppExclusionListActivity.kt @@ -103,7 +103,7 @@ class NetpAppExclusionListActivity : override fun onPrepareOptionsMenu(menu: Menu): Boolean { val restoreDefault = menu.findItem(R.id.netp_exclusion_menu_restore) // onPrepareOptionsMenu is called when overflow menu is being displayed, that's why this can be an imperative call - restoreDefault?.isEnabled = viewModel.canRestoreDefaults() + restoreDefault?.setVisible(viewModel.canRestoreDefaults()) return super.onPrepareOptionsMenu(menu) }