0
0
Fork 0
mirror of https://github.com/YTVanced/VancedManager synced 2024-11-15 23:35:06 +00:00

removed guide button

This commit is contained in:
X1nto 2021-10-08 22:58:23 +04:00
parent 36fc660811
commit 17f3af190f
2 changed files with 0 additions and 26 deletions

View file

@ -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")

View file

@ -17,8 +17,4 @@
android:id="@+id/toolbar_log"
android:title="@string/title_logs" />
<item
android:id="@+id/toolbar_guide"
android:title="@string/title_guide" />
</menu>