mirror of
https://github.com/TeamNewPipe/NewPipe/
synced 2025-01-31 02:54:55 +01:00
fix settings updateSummary
This commit is contained in:
parent
4bba84af8a
commit
e0dbf4c2cd
@ -104,8 +104,6 @@ public class SettingsFragment extends PreferenceFragment
|
|||||||
}
|
}
|
||||||
if (key == USE_TOR_KEY)
|
if (key == USE_TOR_KEY)
|
||||||
{
|
{
|
||||||
updateSummary();
|
|
||||||
|
|
||||||
if (defaultPreferences.getBoolean(USE_TOR_KEY, false)) {
|
if (defaultPreferences.getBoolean(USE_TOR_KEY, false)) {
|
||||||
if (OrbotHelper.isOrbotInstalled(a)) {
|
if (OrbotHelper.isOrbotInstalled(a)) {
|
||||||
App.configureTor(true);
|
App.configureTor(true);
|
||||||
@ -134,6 +132,7 @@ public class SettingsFragment extends PreferenceFragment
|
|||||||
downloadPathAudioPreference
|
downloadPathAudioPreference
|
||||||
.setSummary(downloadPath);
|
.setSummary(downloadPath);
|
||||||
}
|
}
|
||||||
|
updateSummary();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
defaultPreferences.registerOnSharedPreferenceChangeListener(prefListener);
|
defaultPreferences.registerOnSharedPreferenceChangeListener(prefListener);
|
||||||
@ -219,6 +218,7 @@ public class SettingsFragment extends PreferenceFragment
|
|||||||
&& OrbotHelper.requestStartTor(a));
|
&& OrbotHelper.requestStartTor(a));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
updateSummary();
|
||||||
super.onActivityResult(requestCode, resultCode, data);
|
super.onActivityResult(requestCode, resultCode, data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user