[merge] Fix crash on disabling wysiwyg from dev quick option
Fixes https://github.com/SchildiChat/SchildiChat-android-rageshakes/issues/1095 Change-Id: Ie8e2e41a0e162a785bc99d1083632f0d1e6cb227
This commit is contained in:
parent
d43b296140
commit
e06a4b94c6
|
@ -198,11 +198,11 @@ class AutoCompleter @AssistedInject constructor(
|
|||
}
|
||||
|
||||
private fun setupEmojis(backgroundDrawable: Drawable, editText: EditText) {
|
||||
autocompleteEmojiPresenter = autocompleteEmojiPresenterFactory.create(roomId)
|
||||
|
||||
// Rich text editor is not yet supported
|
||||
if (editText is EditorEditText) return
|
||||
|
||||
autocompleteEmojiPresenter = autocompleteEmojiPresenterFactory.create(roomId)
|
||||
|
||||
autocompletes += Autocomplete.on<EmojiItem>(editText)
|
||||
.with(CharPolicy(TRIGGER_AUTO_COMPLETE_EMOJIS, false))
|
||||
.with(autocompleteEmojiPresenter)
|
||||
|
|
Loading…
Reference in New Issue