mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-12-28 09:57:44 +00:00
Ignore duplicate clicks on BottomNavigationView
Co-authored-by: RikkaW <rikka@shizuku.moe>
This commit is contained in:
parent
454e5dfc5d
commit
a01a3404fe
@ -76,6 +76,9 @@ class MainActivity : BaseMainActivity<MainViewModel, ActivityMainMd2Binding>() {
|
||||
getScreen(it.itemId)?.navigate()
|
||||
true
|
||||
}
|
||||
binding.mainNavigation.setOnItemReselectedListener {
|
||||
// https://issuetracker.google.com/issues/124538620
|
||||
}
|
||||
binding.mainNavigation.menu.apply {
|
||||
findItem(R.id.superuserFragment)?.isEnabled = Utils.showSuperUser()
|
||||
findItem(R.id.modulesFragment)?.isEnabled = Info.env.isActive
|
||||
|
Loading…
x
Reference in New Issue
Block a user