Fix checking capitalized word code
This is a follow up change of If6c0edef. Bug: 5328922 Change-Id: Idb415f53f3fea6660c7802577d08b4d89d4e7842
This commit is contained in:
parent
5b0c124ca8
commit
436a645ea8
1 changed files with 1 additions and 1 deletions
|
@ -106,7 +106,7 @@ public class WordComposer {
|
|||
|
||||
private static boolean isFirstCharCapitalized(int index, int codePoint, boolean previous) {
|
||||
if (index == 0) return Character.isUpperCase(codePoint);
|
||||
return previous && Character.isLowerCase(codePoint);
|
||||
return previous && !Character.isUpperCase(codePoint);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue