diff options
author | 2015-04-17 16:48:10 -0700 | |
---|---|---|
committer | 2015-04-20 20:29:44 -0700 | |
commit | 490fa47a46015f2c8bd8f9010d236bfe5aecd4bb (patch) | |
tree | 55599c8c109d3959fdc8f616b144ed43ffb755b7 /java/src/com/android/inputmethod/latin/SystemBroadcastReceiver.java | |
parent | 54e891e2bdce2d3d1f8a319c1f596fd6590314f3 (diff) | |
download | latinime-490fa47a46015f2c8bd8f9010d236bfe5aecd4bb.tar.gz latinime-490fa47a46015f2c8bd8f9010d236bfe5aecd4bb.tar.xz latinime-490fa47a46015f2c8bd8f9010d236bfe5aecd4bb.zip |
Always specify non-null Locale object to SuggestionSpan
Confusingly, specifying a null Locale object to the constructor
of SuggestionSpan does not necessarily mean that
SuggestionSpan#getLocale() returns null. The constructor in
question also receives Context object, and Context's locale can
be used as a fallback locale to initialize locale of
SuggestionSpan.
With this CL, LatinIME always specify non-null Locale object
when instantiating SuggestionSpan object. It basically
corresponds to the active main dictionary, but can be
Locale#ROOT when one locale is not determined for some reasons.
BUG: 20435013
Change-Id: I2c152466410327300e7dba4d7ed9a22f57c17c4f
Diffstat (limited to 'java/src/com/android/inputmethod/latin/SystemBroadcastReceiver.java')
0 files changed, 0 insertions, 0 deletions