am 0f3b8e89: Merge change Ieef539c3 into eclair

Merge commit '0f3b8e8966d3da99e7844d6ca8083cccf23bef01' into eclair-mr2

* commit '0f3b8e8966d3da99e7844d6ca8083cccf23bef01':
  Fix a potential IllegalArgumentException caught by monkeys. #2176776
main
Amith Yamasani 2009-10-09 10:24:57 -07:00 committed by Android Git Automerger
commit 95a21916b9
1 changed files with 4 additions and 0 deletions

View File

@ -693,6 +693,10 @@ public class LatinIME extends InputMethodService
} }
if (mInputView.isShifted()) { if (mInputView.isShifted()) {
// TODO: This doesn't work with ß, need to fix it in the next release. // TODO: This doesn't work with ß, need to fix it in the next release.
if (keyCodes == null || keyCodes[0] < Character.MIN_CODE_POINT
|| keyCodes[0] > Character.MAX_CODE_POINT) {
return;
}
primaryCode = new String(keyCodes, 0, 1).toUpperCase().charAt(0); primaryCode = new String(keyCodes, 0, 1).toUpperCase().charAt(0);
} }
if (mPredicting) { if (mPredicting) {