Making the behavior deterministic when the IME picker is shown.

In the language & input settings, the auxiliary IME subtypes have been
hidden since they should not be a default.  With Id156c85535a22, now we
can explicitly control the behavior of input method picker.
Note the this CL should not change any user visible behaviors.

Bug: 20763994
Change-Id: I9f797d07ba02363fab58ceb9aecb3cc11fbc407e
This commit is contained in:
Seigo Nonaka
2015-05-04 17:31:00 -07:00
committed by Yohei Yukawa
parent bc95630994
commit e792729b4c
3 changed files with 3 additions and 3 deletions

View File

@@ -765,7 +765,7 @@ public class CryptKeeper extends Activity implements TextView.OnEditorActionList
imeSwitcher.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
imm.showInputMethodPicker();
imm.showInputMethodPicker(false /* showAuxiliarySubtypes */);
}
});
}

View File

@@ -325,7 +325,7 @@ public class InputMethodAndLanguageSettings extends SettingsPreferenceFragment
} else if (KEY_CURRENT_INPUT_METHOD.equals(preference.getKey())) {
final InputMethodManager imm = (InputMethodManager)
getSystemService(Context.INPUT_METHOD_SERVICE);
imm.showInputMethodPicker();
imm.showInputMethodPicker(false /* showAuxiliarySubtypes */);
}
} else if (preference instanceof SwitchPreference) {
final SwitchPreference pref = (SwitchPreference) preference;

View File

@@ -26,7 +26,7 @@ public class InputMethodDialogReceiver extends BroadcastReceiver {
public void onReceive(Context context, Intent intent) {
if (Settings.ACTION_SHOW_INPUT_METHOD_PICKER.equals(intent.getAction())) {
((InputMethodManager) context.getSystemService(Context.INPUT_METHOD_SERVICE))
.showInputMethodPicker();
.showInputMethodPicker(true /* showAuxiliarySubtypes */);
}
}
}