Skip to content
Snippets Groups Projects
Commit e91559a1 authored by Tadashi G. Takaoka's avatar Tadashi G. Takaoka Committed by Android (Google) Code Review
Browse files

Merge "Update shortcut IME info before checking availability of it"

parents e9584a16 b7c531b7
No related branches found
No related tags found
No related merge requests found
...@@ -226,6 +226,7 @@ public final class SubtypeSwitcher { ...@@ -226,6 +226,7 @@ public final class SubtypeSwitcher {
} }
public boolean isShortcutImeEnabled() { public boolean isShortcutImeEnabled() {
updateShortcutIME();
if (mShortcutInputMethodInfo == null) { if (mShortcutInputMethodInfo == null) {
return false; return false;
} }
...@@ -237,10 +238,13 @@ public final class SubtypeSwitcher { ...@@ -237,10 +238,13 @@ public final class SubtypeSwitcher {
} }
public boolean isShortcutImeReady() { public boolean isShortcutImeReady() {
if (mShortcutInputMethodInfo == null) updateShortcutIME();
if (mShortcutInputMethodInfo == null) {
return false; return false;
if (mShortcutSubtype == null) }
if (mShortcutSubtype == null) {
return true; return true;
}
if (mShortcutSubtype.containsExtraValueKey(REQ_NETWORK_CONNECTIVITY)) { if (mShortcutSubtype.containsExtraValueKey(REQ_NETWORK_CONNECTIVITY)) {
return mIsNetworkConnected; return mIsNetworkConnected;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment