Merge "Support automatic language"

main
satok 2011-09-05 02:39:58 -07:00 committed by Android (Google) Code Review
commit 6a9f0db202
1 changed files with 1 additions and 2 deletions

View File

@ -100,8 +100,7 @@ public final class InputMethodSubtypeCompatWrapper extends AbstractCompatWrapper
public String getLocale() {
if (mObj == null) return mDummyLocale;
final String s = (String)CompatUtils.invoke(mObj, null, METHOD_getLocale);
if (TextUtils.isEmpty(s)) return DEFAULT_LOCALE;
return s;
return s != null ? s : DEFAULT_LOCALE;
}
public String getMode() {