Update MainActivity.kt
This commit is contained in:
parent
887c5fefae
commit
b7111e7ac6
1 changed files with 8 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Reference in a new issue