mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-12-23 20:21:49 +01:00
Update MainActivity.kt
This commit is contained in:
parent
887c5fefae
commit
b7111e7ac6
@ -86,8 +86,10 @@ open class MainActivity : BaseActivity() {
|
|||||||
canDismissSnackBar = false
|
canDismissSnackBar = false
|
||||||
launchUI {
|
launchUI {
|
||||||
delay(5000)
|
delay(5000)
|
||||||
|
if (this@MainActivity.snackBar == snackBar) {
|
||||||
canDismissSnackBar = true
|
canDismissSnackBar = true
|
||||||
}
|
}
|
||||||
|
}
|
||||||
extraViewForUndo = extraViewToCheck
|
extraViewForUndo = extraViewToCheck
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -466,7 +468,11 @@ open class MainActivity : BaseActivity() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (to is SecondaryDrawerController) {
|
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) {
|
if (to is NoToolbarElevationController) {
|
||||||
|
Loading…
Reference in New Issue
Block a user