From e9176e2a5b6492a57705c9f7813f2c241ddb848f Mon Sep 17 00:00:00 2001 From: Felix Prahl-Kamps Date: Sun, 6 Oct 2019 20:30:29 +0200 Subject: [PATCH] remove delete all syncs from preferences --- .../mispbump/activities/PreferenceActivity.java | 14 +++++++------- app/src/main/res/xml/preference_screen_main.xml | 14 +++++++------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/app/src/main/java/lu/circl/mispbump/activities/PreferenceActivity.java b/app/src/main/java/lu/circl/mispbump/activities/PreferenceActivity.java index fedd24a..c55439b 100644 --- a/app/src/main/java/lu/circl/mispbump/activities/PreferenceActivity.java +++ b/app/src/main/java/lu/circl/mispbump/activities/PreferenceActivity.java @@ -40,10 +40,10 @@ public class PreferenceActivity extends AppCompatActivity { FragmentManager fragmentManager = getSupportFragmentManager(); FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction(); PreferencesFragment preferencesFragment = new PreferencesFragment(); - preferencesFragment.onDeleteAllSyncsListener = preference -> { - preferenceManager.clearUploadInformation(); - return true; - }; +// preferencesFragment.onDeleteAllSyncsListener = preference -> { +// preferenceManager.clearUploadInformation(); +// return true; +// }; fragmentTransaction.add(R.id.fragmentContainer, preferencesFragment, PreferencesFragment.class.getSimpleName()); fragmentTransaction.commit(); @@ -57,9 +57,9 @@ public class PreferenceActivity extends AppCompatActivity { public void onCreatePreferences(Bundle savedInstanceState, String rootKey) { setPreferencesFromResource(R.xml.preference_screen_main, rootKey); - Preference deleteAllSyncInfo = findPreference("PREF_DELETE_ALL_SYNCS"); - assert deleteAllSyncInfo != null; - deleteAllSyncInfo.setOnPreferenceClickListener(onDeleteAllSyncsListener); +// Preference deleteAllSyncInfo = findPreference("PREF_DELETE_ALL_SYNCS"); +// assert deleteAllSyncInfo != null; +// deleteAllSyncInfo.setOnPreferenceClickListener(onDeleteAllSyncsListener); } } } diff --git a/app/src/main/res/xml/preference_screen_main.xml b/app/src/main/res/xml/preference_screen_main.xml index 59f4e3b..eddcb67 100644 --- a/app/src/main/res/xml/preference_screen_main.xml +++ b/app/src/main/res/xml/preference_screen_main.xml @@ -2,13 +2,13 @@ - - - + + + + + + +