am e91559a1: Merge "Update shortcut IME info before checking availability of it"
* commit 'e91559a1197e794f3c41e442900907a680d0c91d': Update shortcut IME info before checking availability of itmain
commit
c6f0674c6f
|
@ -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