mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-12-23 21:01:51 +01:00
Fixed bottombar interface logic
This commit is contained in:
parent
a529667257
commit
1da1b281eb
@ -132,10 +132,10 @@ open class MainActivity : BaseActivity(), DownloadServiceListener {
|
||||
val id = item.itemId
|
||||
val currentController = router.backstack.lastOrNull()?.controller()
|
||||
if (!continueSwitchingTabs && currentController is BottomNavBarInterface) {
|
||||
return@setOnNavigationItemSelectedListener currentController.canChangeTabs {
|
||||
if (!currentController.canChangeTabs {
|
||||
continueSwitchingTabs = true
|
||||
this@MainActivity.navigationView.selectedItemId = id
|
||||
}
|
||||
}) return@setOnNavigationItemSelectedListener false
|
||||
}
|
||||
continueSwitchingTabs = false
|
||||
val currentRoot = router.backstack.firstOrNull()
|
||||
|
Loading…
Reference in New Issue
Block a user