forked from upstream-mirrors/quik
use emoji2-bundled version for compatibility with non playstore/gsm os'
emoji2 compat library to 1.4.0 (required compilesdk upgrade to 34) make qkedittext use appcompatedittext for emoji compatibility fix small incompatibilities introduced by new library versions
This commit is contained in:
@@ -824,7 +824,7 @@ class ComposeActivity : QkThemedActivity(), ComposeView {
|
||||
if (messageEditBox !== null) {
|
||||
// populate message box with data returned by STT, set cursor to end, and focus
|
||||
messageEditBox.append(match[0])
|
||||
messageEditBox.setSelection(messageEditBox.text.length)
|
||||
messageEditBox.setSelection(messageEditBox.text?.length ?: 0)
|
||||
messageEditBox.requestFocus()
|
||||
}
|
||||
}
|
||||
|
||||
+3
-3
@@ -1,9 +1,9 @@
|
||||
package dev.octoshrimpy.quik.feature.extensions
|
||||
|
||||
import android.text.Spannable
|
||||
import androidx.emoji.text.EmojiCompat
|
||||
import androidx.emoji.text.EmojiCompat.REPLACE_STRATEGY_ALL
|
||||
import androidx.emoji.text.EmojiSpan
|
||||
import androidx.emoji2.text.EmojiCompat
|
||||
import androidx.emoji2.text.EmojiCompat.REPLACE_STRATEGY_ALL
|
||||
import androidx.emoji2.text.EmojiSpan
|
||||
|
||||
|
||||
fun CharSequence.isEmojiOnly(considerWhitespace: Boolean = false): Boolean {
|
||||
|
||||
@@ -80,7 +80,7 @@ class QkReplyActivity : QkThemedActivity(), QkReplyView {
|
||||
|
||||
// populate message box with data returned by STT, set cursor to end, and focus
|
||||
message.setText(match[0])
|
||||
message.setSelection(message.text.length)
|
||||
message.setSelection(message.text?.length ?: 0)
|
||||
message.requestFocus()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user