am 93e2d777: Merge "Fix froyo-ub-LatinImeGoogle compatibility" into honeycomb
* commit '93e2d777418d5a4e547e60a379d8deb5658692ab': Fix froyo-ub-LatinImeGoogle compatibilitymain
commit
0b971df9e3
|
@ -71,7 +71,7 @@ public class MiniKeyboardBuilder {
|
||||||
for (CharSequence popupSpec : popupCharacters) {
|
for (CharSequence popupSpec : popupCharacters) {
|
||||||
final CharSequence label = PopupCharactersParser.getLabel(popupSpec.toString());
|
final CharSequence label = PopupCharactersParser.getLabel(popupSpec.toString());
|
||||||
// If the label is single letter, minKeyWidth is enough to hold the label.
|
// If the label is single letter, minKeyWidth is enough to hold the label.
|
||||||
if (label.length() > 1) {
|
if (label != null && label.length() > 1) {
|
||||||
if (paint == null) {
|
if (paint == null) {
|
||||||
paint = new Paint();
|
paint = new Paint();
|
||||||
paint.setAntiAlias(true);
|
paint.setAntiAlias(true);
|
||||||
|
|
|
@ -182,7 +182,7 @@ public class Settings extends PreferenceActivity
|
||||||
if (pref == mInputLanguageSelection) {
|
if (pref == mInputLanguageSelection) {
|
||||||
final String action;
|
final String action;
|
||||||
if (android.os.Build.VERSION.SDK_INT
|
if (android.os.Build.VERSION.SDK_INT
|
||||||
>= /* android.os.Build.VERSION_CODES.HONEYCOMB */ 10) {
|
>= /* android.os.Build.VERSION_CODES.HONEYCOMB */ 11) {
|
||||||
action = "android.settings.INPUT_METHOD_AND_SUBTYPE_ENABLER";
|
action = "android.settings.INPUT_METHOD_AND_SUBTYPE_ENABLER";
|
||||||
} else {
|
} else {
|
||||||
action = "com.android.inputmethod.latin.INPUT_LANGUAGE_SELECTION";
|
action = "com.android.inputmethod.latin.INPUT_LANGUAGE_SELECTION";
|
||||||
|
|
Loading…
Reference in New Issue