fixed scrolling the punctuation, then switching to emoji, breaking the first emoji
This commit is contained in:
parent
28c95665c3
commit
1ef576e941
1 changed files with 3 additions and 0 deletions
|
|
@ -701,6 +701,9 @@ public class TraditionalT9 extends KeyPadHandler {
|
||||||
private void setComposingTextWithHighlightedStem(@NonNull String word) {
|
private void setComposingTextWithHighlightedStem(@NonNull String word) {
|
||||||
if (appHacks.setComposingTextWithHighlightedStem(word)) {
|
if (appHacks.setComposingTextWithHighlightedStem(word)) {
|
||||||
Logger.w("highlightComposingText", "Defective text field detected! Text highlighting disabled.");
|
Logger.w("highlightComposingText", "Defective text field detected! Text highlighting disabled.");
|
||||||
|
} else if (word.isEmpty() || !Character.isLetterOrDigit(word.charAt(0))) {
|
||||||
|
// Leave emoji and special characters alone. Adding bold or italic breaks them.
|
||||||
|
textField.setComposingText(word);
|
||||||
} else {
|
} else {
|
||||||
textField.setComposingTextWithHighlightedStem(word, mInputMode);
|
textField.setComposingTextWithHighlightedStem(word, mInputMode);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue