mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-23 04:28:35 +00:00
Fix ISE crash in compose text watcher.
This commit is contained in:
committed by
Nicholas Tinsley
parent
6232656ad4
commit
fd07ab10ee
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user