From 17f3af190f0c194d634f2338a9981ef4f7acce20 Mon Sep 17 00:00:00 2001 From: X1nto Date: Fri, 8 Oct 2021 22:58:23 +0400 Subject: [PATCH] removed guide button --- .../com/vanced/manager/ui/MainActivity.kt | 22 ------------------- app/src/main/res/menu/toolbar_menu.xml | 4 ---- 2 files changed, 26 deletions(-) diff --git a/app/src/main/java/com/vanced/manager/ui/MainActivity.kt b/app/src/main/java/com/vanced/manager/ui/MainActivity.kt index e00c8433..c1663ca8 100644 --- a/app/src/main/java/com/vanced/manager/ui/MainActivity.kt +++ b/app/src/main/java/com/vanced/manager/ui/MainActivity.kt @@ -94,28 +94,6 @@ class MainActivity : AppCompatActivity() { navHost.navigate(HomeFragmentDirections.toLogFragment()) true } - R.id.toolbar_guide -> { - try { - val intent = if (isPackageInstalled(faqpkg, packageManager)) { - Intent().apply { - component = ComponentName(faqpkg, "$faqpkg.ui.MainActivity") - } - } else { - Intent(Intent.ACTION_VIEW).apply { - val uriBuilder = Uri.parse("https://play.google.com/store/apps/details") - .buildUpon() - .appendQueryParameter("id", faqpkg) - .appendQueryParameter("launch", "true") - data = uriBuilder.build() - setPackage(playStorePkg) - } - } - startActivity(intent) - true - } catch (e: ActivityNotFoundException) { - false - } - } R.id.toolbar_update_manager -> { ManagerUpdateDialog.newInstance(false) .show(supportFragmentManager, "manager_update") diff --git a/app/src/main/res/menu/toolbar_menu.xml b/app/src/main/res/menu/toolbar_menu.xml index 2ac9edf1..798668b2 100644 --- a/app/src/main/res/menu/toolbar_menu.xml +++ b/app/src/main/res/menu/toolbar_menu.xml @@ -17,8 +17,4 @@ android:id="@+id/toolbar_log" android:title="@string/title_logs" /> - - \ No newline at end of file