Skip to content
This repository has been archived by the owner on Mar 15, 2022. It is now read-only.

Commit

Permalink
removed guide button
Browse files Browse the repository at this point in the history
  • Loading branch information
X1nto committed Oct 8, 2021
1 parent 36fc660 commit 17f3af1
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 26 deletions.
22 changes: 0 additions & 22 deletions app/src/main/java/com/vanced/manager/ui/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
4 changes: 0 additions & 4 deletions app/src/main/res/menu/toolbar_menu.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>

0 comments on commit 17f3af1

Please sign in to comment.