Collapse search view and finish action mode when drawer was opened

This commit is contained in:
cketti 2022-10-06 12:33:36 +02:00
parent 1688ef3c49
commit 2aee9fb56b
2 changed files with 8 additions and 2 deletions

View file

@ -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 {

View file

@ -1319,6 +1319,10 @@ class MessageListFragment :
actionMode?.invalidate()
}
fun finishActionMode() {
actionMode?.finish()
}
fun remoteSearchFinished() {
remoteSearchFuture = null
}