summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsatok <satok@google.com>2011-09-05 19:02:07 +0900
committersatok <satok@google.com>2011-09-05 19:02:07 +0900
commit9ce9a5482a8bcf542c5e81f50d385f707e7085d1 (patch)
tree4879f103cd8a71098145982982939d3eb448b1c5
parent010474f42b9b60af32f3f7ca0d34d34642f10f60 (diff)
downloadandroid_frameworks_opt_inputmethodcommon-9ce9a5482a8bcf542c5e81f50d385f707e7085d1.tar.gz
android_frameworks_opt_inputmethodcommon-9ce9a5482a8bcf542c5e81f50d385f707e7085d1.tar.bz2
android_frameworks_opt_inputmethodcommon-9ce9a5482a8bcf542c5e81f50d385f707e7085d1.zip
Tweak settings
Bug: 5069983 Change-Id: Icdf505f804d1f4381031398032324fcf0872507a
-rw-r--r--java/com/android/inputmethodcommon/InputMethodSettingsImpl.java12
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);
- }
- }
}
}