mirror of
https://github.com/YTVanced/VancedManager
synced 2024-11-16 07:45:06 +00:00
removed guide button
This commit is contained in:
parent
36fc660811
commit
17f3af190f
2 changed files with 0 additions and 26 deletions
|
@ -94,28 +94,6 @@ class MainActivity : AppCompatActivity() {
|
||||||
navHost.navigate(HomeFragmentDirections.toLogFragment())
|
navHost.navigate(HomeFragmentDirections.toLogFragment())
|
||||||
true
|
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 -> {
|
R.id.toolbar_update_manager -> {
|
||||||
ManagerUpdateDialog.newInstance(false)
|
ManagerUpdateDialog.newInstance(false)
|
||||||
.show(supportFragmentManager, "manager_update")
|
.show(supportFragmentManager, "manager_update")
|
||||||
|
|
|
@ -17,8 +17,4 @@
|
||||||
android:id="@+id/toolbar_log"
|
android:id="@+id/toolbar_log"
|
||||||
android:title="@string/title_logs" />
|
android:title="@string/title_logs" />
|
||||||
|
|
||||||
<item
|
|
||||||
android:id="@+id/toolbar_guide"
|
|
||||||
android:title="@string/title_guide" />
|
|
||||||
|
|
||||||
</menu>
|
</menu>
|
Loading…
Reference in a new issue