Improve preference organization and add summaries to the sections

This commit is contained in:
Alexander Bakker 2021-01-23 19:23:13 +01:00
parent eae31ef94b
commit d9d6733878
34 changed files with 259 additions and 220 deletions

View file

@ -51,7 +51,7 @@ import java.util.List;
import javax.crypto.Cipher;
public class ToolsPreferencesFragment extends PreferencesFragment {
public class ImportExportPreferencesFragment extends PreferencesFragment {
// keep a reference to the type of database converter the user selected
private Class<? extends DatabaseImporter> _importerType;
private AegisImporter.State _importerState;
@ -60,7 +60,7 @@ public class ToolsPreferencesFragment extends PreferencesFragment {
@Override
public void onCreatePreferences(Bundle savedInstanceState, String rootKey) {
super.onCreatePreferences(savedInstanceState, rootKey);
addPreferencesFromResource(R.xml.preferences_tools);
addPreferencesFromResource(R.xml.preferences_import_export);
Preference importPreference = findPreference("pref_import");
importPreference.setOnPreferenceClickListener(preference -> {