mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-11-30 13:35:27 +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()
|
getScreen(it.itemId)?.navigate()
|
||||||
true
|
true
|
||||||
}
|
}
|
||||||
|
binding.mainNavigation.setOnItemReselectedListener {
|
||||||
|
// https://issuetracker.google.com/issues/124538620
|
||||||
|
}
|
||||||
binding.mainNavigation.menu.apply {
|
binding.mainNavigation.menu.apply {
|
||||||
findItem(R.id.superuserFragment)?.isEnabled = Utils.showSuperUser()
|
findItem(R.id.superuserFragment)?.isEnabled = Utils.showSuperUser()
|
||||||
findItem(R.id.modulesFragment)?.isEnabled = Info.env.isActive
|
findItem(R.id.modulesFragment)?.isEnabled = Info.env.isActive
|
||||||
|
Loading…
Reference in New Issue
Block a user