Merge branch 'master' of codeberg.org:Freeyourgadget/Gadgetbridge into multi-device-support

This commit is contained in:
Daniel Dakhno 2021-12-26 15:41:09 +01:00
commit 970f178b86

View File

@ -938,6 +938,11 @@ public class DeviceSpecificSettingsFragment extends PreferenceFragmentCompat imp
public void onSharedPreferenceChanged(SharedPreferences prefs, String key) {
LOG.debug("Preference changed: {}", key);
if(key == null){
LOG.warn("Preference null, ignoring");
return;
}
final Preference preference = findPreference(key);
if (preference == null) {
LOG.warn("Preference {} not found, ignoring", key);