mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-12-23 07:11:52 +01:00
Update MainActivity.kt
This commit is contained in:
parent
887c5fefae
commit
b7111e7ac6
@ -86,7 +86,9 @@ open class MainActivity : BaseActivity() {
|
||||
canDismissSnackBar = false
|
||||
launchUI {
|
||||
delay(5000)
|
||||
canDismissSnackBar = true
|
||||
if (this@MainActivity.snackBar == snackBar) {
|
||||
canDismissSnackBar = true
|
||||
}
|
||||
}
|
||||
extraViewForUndo = extraViewToCheck
|
||||
}
|
||||
@ -466,7 +468,11 @@ open class MainActivity : BaseActivity() {
|
||||
}
|
||||
}
|
||||
if (to is SecondaryDrawerController) {
|
||||
secondaryDrawer = to.createSecondaryDrawer(drawer)?.also { drawer.addView(it) }
|
||||
val newDrawer = to.createSecondaryDrawer(drawer)?.also { drawer.addView(it) }
|
||||
secondaryDrawer = if (newDrawer == null && secondaryDrawer != null) {
|
||||
drawer.removeView(secondaryDrawer)
|
||||
null
|
||||
} else newDrawer
|
||||
}
|
||||
|
||||
if (to is NoToolbarElevationController) {
|
||||
|
Loading…
Reference in New Issue
Block a user