From 5b39062c4ad7f9b3c3e278afb05b5379c785caad Mon Sep 17 00:00:00 2001 From: althafvly Date: Tue, 2 Jul 2024 16:30:32 +0530 Subject: [PATCH] nfty: Remove unused menu entries --- app/src/main/java/io/heckel/ntfy/ui/MainActivity.kt | 13 +------------ app/src/main/res/menu/menu_main_action_bar.xml | 3 --- 2 files changed, 1 insertion(+), 15 deletions(-) diff --git a/app/src/main/java/io/heckel/ntfy/ui/MainActivity.kt b/app/src/main/java/io/heckel/ntfy/ui/MainActivity.kt index 0f2e71c..ea43f08 100644 --- a/app/src/main/java/io/heckel/ntfy/ui/MainActivity.kt +++ b/app/src/main/java/io/heckel/ntfy/ui/MainActivity.kt @@ -376,18 +376,7 @@ class MainActivity : AppCompatActivity(), ActionMode.Callback, AddFragment.Subsc startActivity(Intent(this, SettingsActivity::class.java)) true } - R.id.main_menu_report_bug -> { - startActivity(Intent(Intent.ACTION_VIEW, Uri.parse(getString(R.string.main_menu_report_bug_url)))) - true - } - R.id.main_menu_donate -> { - startActivity(Intent(Intent.ACTION_VIEW, Uri.parse(getString(R.string.main_menu_donate_url)))) - true - } - R.id.main_menu_docs -> { - startActivity(Intent(Intent.ACTION_VIEW, Uri.parse(getString(R.string.main_menu_docs_url)))) - true - } + else -> super.onOptionsItemSelected(item) } } diff --git a/app/src/main/res/menu/menu_main_action_bar.xml b/app/src/main/res/menu/menu_main_action_bar.xml index c495d19..a4ffd11 100644 --- a/app/src/main/res/menu/menu_main_action_bar.xml +++ b/app/src/main/res/menu/menu_main_action_bar.xml @@ -6,7 +6,4 @@ - - -