Don't invalidate the menu in MessageList
This commit is contained in:
parent
8214ef3fb7
commit
3fce00902a
2 changed files with 3 additions and 12 deletions
|
@ -1028,8 +1028,6 @@ open class MessageList :
|
|||
if (displayMode == DisplayMode.SPLIT_VIEW) {
|
||||
showMessageViewPlaceHolder()
|
||||
}
|
||||
|
||||
invalidateMenu()
|
||||
}
|
||||
|
||||
private fun addMessageListFragment(fragment: MessageListFragment) {
|
||||
|
@ -1121,11 +1119,6 @@ open class MessageList :
|
|||
fragmentTransaction.commit()
|
||||
}
|
||||
|
||||
override fun remoteSearchStarted() {
|
||||
// Remove action button for remote search
|
||||
invalidateMenu()
|
||||
}
|
||||
|
||||
override fun goBack() {
|
||||
val fragmentManager = supportFragmentManager
|
||||
when {
|
||||
|
@ -1199,7 +1192,6 @@ open class MessageList :
|
|||
setDrawerLockState()
|
||||
|
||||
showDefaultTitleView()
|
||||
invalidateMenu()
|
||||
|
||||
onMessageListDisplayed()
|
||||
}
|
||||
|
@ -1231,7 +1223,6 @@ open class MessageList :
|
|||
}
|
||||
|
||||
showMessageTitleView()
|
||||
invalidateMenu()
|
||||
}
|
||||
|
||||
private fun showDefaultTitleView() {
|
||||
|
|
|
@ -141,6 +141,7 @@ class MessageListFragment :
|
|||
set(value) {
|
||||
field = value
|
||||
resetActionMode()
|
||||
invalidateMenu()
|
||||
}
|
||||
|
||||
override fun onAttach(context: Context) {
|
||||
|
@ -537,7 +538,7 @@ class MessageListFragment :
|
|||
activityListener
|
||||
)
|
||||
|
||||
fragmentListener.remoteSearchStarted()
|
||||
invalidateMenu()
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -1619,7 +1620,7 @@ class MessageListFragment :
|
|||
}
|
||||
|
||||
private fun invalidateMenu() {
|
||||
requireActivity().invalidateMenu()
|
||||
activity?.invalidateMenu()
|
||||
}
|
||||
|
||||
private val isCheckMailSupported: Boolean
|
||||
|
@ -1978,7 +1979,6 @@ class MessageListFragment :
|
|||
fun setMessageListTitle(title: String, subtitle: String?)
|
||||
fun onCompose(account: Account?)
|
||||
fun startSearch(query: String, account: Account?, folderId: Long?): Boolean
|
||||
fun remoteSearchStarted()
|
||||
fun goBack()
|
||||
fun onFolderNotFoundError()
|
||||
|
||||
|
|
Loading…
Reference in a new issue