diff options
author | 2012-02-03 10:51:34 +0900 | |
---|---|---|
committer | 2012-02-03 11:15:46 +0900 | |
commit | 9242a2bcf8a6b07bb045a8356711bed1493c251e (patch) | |
tree | 9c7cebb930034ce21b7402f2fda3df8ddb7bd797 /tests/src | |
parent | fbd83a87123494a9a02364fa6688734155728256 (diff) | |
download | latinime-9242a2bcf8a6b07bb045a8356711bed1493c251e.tar.gz latinime-9242a2bcf8a6b07bb045a8356711bed1493c251e.tar.xz latinime-9242a2bcf8a6b07bb045a8356711bed1493c251e.zip |
Fix string iterations in a couple places.
Seems I didn't get how to iterate on a String correctly >.>
Talk about a big bug. Anyway, I think it's working now.
Bug: 5955228
Change-Id: I988c900cf2a16c44b9505cfd4f77c7cda7e592f0
Diffstat (limited to 'tests/src')
-rw-r--r-- | tests/src/com/android/inputmethod/latin/InputLogicTests.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/src/com/android/inputmethod/latin/InputLogicTests.java b/tests/src/com/android/inputmethod/latin/InputLogicTests.java index 8c0ccd40b..af647b8ce 100644 --- a/tests/src/com/android/inputmethod/latin/InputLogicTests.java +++ b/tests/src/com/android/inputmethod/latin/InputLogicTests.java @@ -133,7 +133,7 @@ public class InputLogicTests extends ServiceTestCase<LatinIME> { } private void type(final String stringToType) { - for (int i = 0; i < stringToType.length(); ++i) { + for (int i = 0; i < stringToType.length(); i = stringToType.offsetByCodePoints(i, 1)) { type(stringToType.codePointAt(i)); } } |