Collapse search view and finish action mode when drawer was opened
This commit is contained in:
parent
1688ef3c49
commit
2aee9fb56b
2 changed files with 8 additions and 2 deletions
|
@ -616,7 +616,10 @@ open class MessageList :
|
|||
|
||||
override fun onDrawerStateChanged(newState: Int) = Unit
|
||||
|
||||
override fun onDrawerOpened(drawerView: View) = Unit
|
||||
override fun onDrawerOpened(drawerView: View) {
|
||||
collapseSearchView()
|
||||
messageListFragment?.finishActionMode()
|
||||
}
|
||||
|
||||
override fun onDrawerSlide(drawerView: View, slideOffset: Float) = Unit
|
||||
}
|
||||
|
@ -912,7 +915,6 @@ open class MessageList :
|
|||
if (drawer!!.isOpen) {
|
||||
drawer!!.close()
|
||||
} else {
|
||||
collapseSearchView()
|
||||
drawer!!.open()
|
||||
}
|
||||
} else {
|
||||
|
|
|
@ -1319,6 +1319,10 @@ class MessageListFragment :
|
|||
actionMode?.invalidate()
|
||||
}
|
||||
|
||||
fun finishActionMode() {
|
||||
actionMode?.finish()
|
||||
}
|
||||
|
||||
fun remoteSearchFinished() {
|
||||
remoteSearchFuture = null
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue