@Override protected void onResume() { super.onResume(); int autoTextSize = AutoText.getSize(getListView()); if (autoTextSize < 1) { ((PreferenceGroup) findPreference(PREDICTION_SETTINGS_KEY)) .removePreference(mQuickFixes); } Log.i(TAG, "compactModeEnabled=" + LatinIME.sKeyboardSettings.compactModeEnabled); if (!LatinIME.sKeyboardSettings.compactModeEnabled) { CharSequence[] oldEntries = mKeyboardModePortraitPreference.getEntries(); CharSequence[] oldValues = mKeyboardModePortraitPreference.getEntryValues(); if (oldEntries.length > 2) { CharSequence[] newEntries = new CharSequence[] { oldEntries[0], oldEntries[2] }; CharSequence[] newValues = new CharSequence[] { oldValues[0], oldValues[2] }; mKeyboardModePortraitPreference.setEntries(newEntries); mKeyboardModePortraitPreference.setEntryValues(newValues); mKeyboardModeLandscapePreference.setEntries(newEntries); mKeyboardModeLandscapePreference.setEntryValues(newValues); } } updateSummaries(); }
@Override protected void onResume() { super.onResume(); int autoTextSize = AutoText.getSize(getListView()); if (autoTextSize < 1) { ((PreferenceGroup) findPreference(PREDICTION_SETTINGS_KEY)) .removePreference(mQuickFixes); } }