mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-11 03:15:33 +00:00
fix(android): context-initial handling with repeated-char rotation
This commit is contained in:
parent
5f524d69a6
commit
e83ff96efb
1 changed files with 3 additions and 0 deletions
|
|
@ -49,6 +49,9 @@ public final class CharSequenceUtil {
|
|||
String expectedCharsString = expectedChars.toString();
|
||||
String currentContextString = currentContext.toString();
|
||||
int index = expectedCharsString.lastIndexOf(currentContextString);
|
||||
if (currentContextString.length() == 0) {
|
||||
index = 0;
|
||||
}
|
||||
if (index > -1) {
|
||||
// subSequence indices are start(inclusive) to end(exclusive)
|
||||
charsToRestore = expectedChars.subSequence(index + currentContextString.length(), expectedChars.length());
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue