From e0dbf4c2cd15ae362af958e551b92dee73779d56 Mon Sep 17 00:00:00 2001 From: Christian Schabesberger Date: Mon, 12 Sep 2016 16:22:02 +0200 Subject: [PATCH] fix settings updateSummary --- .../java/org/schabi/newpipe/settings/SettingsFragment.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/org/schabi/newpipe/settings/SettingsFragment.java b/app/src/main/java/org/schabi/newpipe/settings/SettingsFragment.java index 401cef551..a5521dfc5 100644 --- a/app/src/main/java/org/schabi/newpipe/settings/SettingsFragment.java +++ b/app/src/main/java/org/schabi/newpipe/settings/SettingsFragment.java @@ -104,8 +104,6 @@ public class SettingsFragment extends PreferenceFragment } if (key == USE_TOR_KEY) { - updateSummary(); - if (defaultPreferences.getBoolean(USE_TOR_KEY, false)) { if (OrbotHelper.isOrbotInstalled(a)) { App.configureTor(true); @@ -134,6 +132,7 @@ public class SettingsFragment extends PreferenceFragment downloadPathAudioPreference .setSummary(downloadPath); } + updateSummary(); } }; defaultPreferences.registerOnSharedPreferenceChangeListener(prefListener); @@ -219,6 +218,7 @@ public class SettingsFragment extends PreferenceFragment && OrbotHelper.requestStartTor(a)); } + updateSummary(); super.onActivityResult(requestCode, resultCode, data); }