mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-17 11:28:06 +00:00
Prevent attach file icon hidden when creating conversation using keyboard
This commit is contained in:
parent
ff323cea68
commit
690140c2b8
2 changed files with 9 additions and 7 deletions
|
|
@ -212,6 +212,13 @@ open class ConversationFragment : SlidingPaneChildFragment() {
|
|||
.viewTreeObserver
|
||||
.removeOnGlobalLayoutListener(this)
|
||||
|
||||
binding.root.setKeyboardInsetListener { keyboardVisible ->
|
||||
sendMessageViewModel.isKeyboardOpen.value = keyboardVisible
|
||||
if (keyboardVisible) {
|
||||
sendMessageViewModel.isEmojiPickerOpen.value = false
|
||||
}
|
||||
}
|
||||
|
||||
if (::scrollListener.isInitialized) {
|
||||
binding.eventsList.addOnScrollListener(scrollListener)
|
||||
}
|
||||
|
|
@ -938,13 +945,6 @@ open class ConversationFragment : SlidingPaneChildFragment() {
|
|||
}
|
||||
})
|
||||
|
||||
binding.root.setKeyboardInsetListener { keyboardVisible ->
|
||||
sendMessageViewModel.isKeyboardOpen.value = keyboardVisible
|
||||
if (keyboardVisible) {
|
||||
sendMessageViewModel.isEmojiPickerOpen.value = false
|
||||
}
|
||||
}
|
||||
|
||||
binding.sendArea.messageToSend.addTextChangedListener(textObserver)
|
||||
|
||||
scrollListener = object : ConversationScrollListener(layoutManager) {
|
||||
|
|
|
|||
|
|
@ -154,8 +154,10 @@ class SendMessageInConversationViewModel
|
|||
isFileTransferServerAvailable.postValue(!core.fileTransferServer.isNullOrEmpty())
|
||||
}
|
||||
|
||||
isKeyboardOpen.value = false
|
||||
isEmojiPickerOpen.value = false
|
||||
areFilePickersOpen.value = false
|
||||
isVoiceRecording.value = false
|
||||
isPlayingVoiceRecord.value = false
|
||||
isCallConversation.value = false
|
||||
maxNumberOfAttachmentsReached.value = false
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue