mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Merge "Support automatic language"
This commit is contained in:
commit
6a9f0db202
@ -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() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user