mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Update shortcut IME info before checking availability of it
Bug: 12377179 Change-Id: I4e2de78dc7e21f3f34eb56c790160b77cfc7584c
This commit is contained in:
parent
1e50c681af
commit
b7c531b751
@ -226,6 +226,7 @@ public final class SubtypeSwitcher {
|
||||
}
|
||||
|
||||
public boolean isShortcutImeEnabled() {
|
||||
updateShortcutIME();
|
||||
if (mShortcutInputMethodInfo == null) {
|
||||
return false;
|
||||
}
|
||||
@ -237,10 +238,13 @@ public final class SubtypeSwitcher {
|
||||
}
|
||||
|
||||
public boolean isShortcutImeReady() {
|
||||
if (mShortcutInputMethodInfo == null)
|
||||
updateShortcutIME();
|
||||
if (mShortcutInputMethodInfo == null) {
|
||||
return false;
|
||||
if (mShortcutSubtype == null)
|
||||
}
|
||||
if (mShortcutSubtype == null) {
|
||||
return true;
|
||||
}
|
||||
if (mShortcutSubtype.containsExtraValueKey(REQ_NETWORK_CONNECTIVITY)) {
|
||||
return mIsNetworkConnected;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user