Use AppCompatEditText instead of EmojiEditText

This avoids different emojis from the editText compared to other
messages and the system keyboard.
When using the inbuilt emoji picker, we get slightly different emojis
to the rest of the system and messages either way, so we might as well
start in the editText, to keep at least that one equal to the rest.

Change-Id: If4cf1dec0513ed725a3bb098cc05a5cd267860b0
This commit is contained in:
SpiritCroc 2020-12-27 14:07:14 +01:00
parent 7ecf8073ef
commit c61a909c71
1 changed files with 2 additions and 2 deletions

View File

@ -24,16 +24,16 @@ import android.text.Editable
import android.util.AttributeSet
import android.view.inputmethod.EditorInfo
import android.view.inputmethod.InputConnection
import androidx.appcompat.widget.AppCompatEditText
import androidx.core.view.inputmethod.EditorInfoCompat
import androidx.core.view.inputmethod.InputConnectionCompat
import com.vanniktech.emoji.EmojiEditText
import im.vector.app.core.extensions.ooi
import im.vector.app.core.platform.SimpleTextWatcher
import im.vector.app.features.html.PillImageSpan
import timber.log.Timber
class ComposerEditText @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = android.R.attr.editTextStyle)
: EmojiEditText(context, attrs, defStyleAttr) {
: AppCompatEditText(context, attrs, defStyleAttr) {
interface Callback {
fun onRichContentSelected(contentUri: Uri): Boolean