diff options
author | 2012-11-14 12:22:40 +0900 | |
---|---|---|
committer | 2012-11-14 12:22:40 +0900 | |
commit | 00c0010ccf2de188743cb8f7364b8ba8b9faf7f8 (patch) | |
tree | 6a1e2db0a59592076c3c7d010a37f5e12ab4caf8 /java/src/com/android/inputmethod/latin/ExpandableBinaryDictionary.java | |
parent | fac619a34c8101cac504db500d74114dc8768372 (diff) | |
download | latinime-00c0010ccf2de188743cb8f7364b8ba8b9faf7f8.tar.gz latinime-00c0010ccf2de188743cb8f7364b8ba8b9faf7f8.tar.xz latinime-00c0010ccf2de188743cb8f7364b8ba8b9faf7f8.zip |
Fix a bug with some text fields
Not sure when this happens exactly, but it is possible that
InputConnection#getTextBeforeCursor returns null. This
happens for example upon rotating the screen with the
composing field empty in Gmail.
In this case, StringBuilder#append will convert the null
pointer into the string "null", which is sure better than a
crash, but can have a number of bad side-effects, like
auto-caps not working.
Bug: 7533034
Change-Id: Ia1cfab432c13a12ff1c2f013c59bac05a587f553
Diffstat (limited to 'java/src/com/android/inputmethod/latin/ExpandableBinaryDictionary.java')
0 files changed, 0 insertions, 0 deletions