diff options
-rw-r--r-- | java/com/android/inputmethodcommon/InputMethodSettingsImpl.java | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/java/com/android/inputmethodcommon/InputMethodSettingsImpl.java b/java/com/android/inputmethodcommon/InputMethodSettingsImpl.java index 5e7decc..5d11205 100644 --- a/java/com/android/inputmethodcommon/InputMethodSettingsImpl.java +++ b/java/com/android/inputmethodcommon/InputMethodSettingsImpl.java @@ -31,7 +31,6 @@ import android.view.inputmethod.InputMethodManager; import java.util.List; /* package private */ class InputMethodSettingsImpl implements InputMethodSettingsInterface { - private PreferenceCategory mInputMethodSettingsCategory; private Preference mSubtypeEnablerPreference; private int mInputMethodSettingsCategoryTitleRes; private CharSequence mInputMethodSettingsCategoryTitle; @@ -55,7 +54,6 @@ import java.util.List; if (imi == null || imi.getSubtypeCount() <= 1) { return false; } - mInputMethodSettingsCategory = new PreferenceCategory(context); mSubtypeEnablerPreference = new Preference(context); mSubtypeEnablerPreference .setOnPreferenceClickListener(new OnPreferenceClickListener() { @@ -75,8 +73,7 @@ import java.util.List; return true; } }); - prefScreen.addPreference(mInputMethodSettingsCategory); - mInputMethodSettingsCategory.addPreference(mSubtypeEnablerPreference); + prefScreen.addPreference(mSubtypeEnablerPreference); updateSubtypeEnabler(); return true; } @@ -194,12 +191,5 @@ import java.util.List; mSubtypeEnablerPreference.setIcon(mSubtypeEnablerIcon); } } - if (mInputMethodSettingsCategory != null) { - if (mInputMethodSettingsCategoryTitleRes != 0) { - mInputMethodSettingsCategory.setTitle(mInputMethodSettingsCategoryTitleRes); - } else if (!TextUtils.isEmpty(mInputMethodSettingsCategoryTitle)) { - mInputMethodSettingsCategory.setTitle(mInputMethodSettingsCategoryTitle); - } - } } } |