Refine InputMethodInfo API

bug: 3370297
Change-Id: Ifaaad399586ee5b842f9b7762281d76e7969d24c
This commit is contained in:
Ken Wakasa
2011-01-20 22:29:34 +09:00
parent 9f7320132b
commit 5a813ba7f9
3 changed files with 15 additions and 8 deletions

View File

@@ -218,7 +218,7 @@ public class InputMethodConfig extends SettingsPreferenceFragment {
// Add subtype settings when this IME has two or more subtypes.
PreferenceScreen prefScreen = new PreferenceScreen(getActivity(), null);
prefScreen.setTitle(R.string.active_input_method_subtypes);
if (imi.getSubtypes().size() > 1) {
if (imi.getSubtypeCount() > 1) {
intent = new Intent(Settings.ACTION_INPUT_METHOD_SUBTYPE_SETTINGS);
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK
| Intent.FLAG_ACTIVITY_RESET_TASK_IF_NEEDED