fixed audio settings changed bug
This commit is contained in:
parent
37ec26c8fd
commit
d9cd928100
1 changed files with 11 additions and 9 deletions
|
@ -119,6 +119,7 @@ public class SettingsActivity extends PreferenceActivity {
|
||||||
public void onSharedPreferenceChanged(SharedPreferences sharedPreferences,
|
public void onSharedPreferenceChanged(SharedPreferences sharedPreferences,
|
||||||
String key) {
|
String key) {
|
||||||
Activity a = getActivity();
|
Activity a = getActivity();
|
||||||
|
if(a != null) {
|
||||||
updateSummary();
|
updateSummary();
|
||||||
|
|
||||||
if (defaultPreferences.getBoolean(USE_TOR_KEY, false)) {
|
if (defaultPreferences.getBoolean(USE_TOR_KEY, false)) {
|
||||||
|
@ -133,6 +134,7 @@ public class SettingsActivity extends PreferenceActivity {
|
||||||
App.configureTor(false);
|
App.configureTor(false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
};
|
};
|
||||||
defaultPreferences.registerOnSharedPreferenceChangeListener(prefListener);
|
defaultPreferences.registerOnSharedPreferenceChangeListener(prefListener);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue