Lines Matching refs:preference
31 import android.support.v7.preference.Preference;
199 Preference preference = new Preference(getPreferenceManager().getContext());
200 preference.setFragment(CryptKeeperConfirm.class.getName());
201 preference.setTitle(R.string.crypt_keeper_confirm_title);
202 addEncryptionInfoToPreference(preference, type, password);
203 ((SettingsActivity) getActivity()).onPreferenceStartFragment(null, preference);
206 private void addEncryptionInfoToPreference(Preference preference, int type, String password) {
211 preference.getExtras().putInt(TYPE, StorageManager.CRYPT_TYPE_DEFAULT);
212 preference.getExtras().putString(PASSWORD, "");
214 preference.getExtras().putInt(TYPE, type);
215 preference.getExtras().putString(PASSWORD, password);