Fix ISE crash in compose text watcher.
This commit is contained in:
parent
6232656ad4
commit
fd07ab10ee
1 changed files with 5 additions and 1 deletions
|
@ -3729,7 +3729,11 @@ class ConversationFragment :
|
|||
override fun afterTextChanged(s: Editable) {
|
||||
calculateCharactersRemaining()
|
||||
if (composeText.textTrimmed.isEmpty() || beforeLength == 0) {
|
||||
composeText.postDelayed({ updateToggleButtonState() }, 50)
|
||||
composeText.postDelayed({
|
||||
if (lifecycle.currentState.isAtLeast(Lifecycle.State.CREATED)) {
|
||||
updateToggleButtonState()
|
||||
}
|
||||
}, 50)
|
||||
}
|
||||
|
||||
if (!inputPanel.inEditMessageMode()) {
|
||||
|
|
Loading…
Add table
Reference in a new issue