fix crash when opening Advanced settings

This commit is contained in:
adbenitez
2021-11-08 20:00:15 -05:00
parent 46df7e5ab2
commit 17a5f9a266
@@ -121,20 +121,6 @@ public class AdvancedPreferenceFragment extends ListSummaryPreferenceFragment
}
return true;
});
Preference locationStreamingEnabled = this.findPreference("pref_location_streaming_enabled");
locationStreamingEnabled.setOnPreferenceChangeListener((preference, newValue) -> {
if ((Boolean)newValue) {
new AlertDialog.Builder(getActivity())
.setTitle("Thanks for trying out \"Location Streaming\"!")
.setMessage("• You will find a corresponding option in the attach menu (the paper clip) of each chat now\n\n"
+ "• If you want to quit the experimental feature, you can disable it at \"Settings / Advanced\"")
.setCancelable(false)
.setPositiveButton(R.string.ok, null)
.show();
}
return true;
});
}
private boolean handleImapCheck(Preference preference, Object newValue, String dc_config_name) {