mirror of
https://github.com/M66B/FairEmail.git
synced 2025-12-12 01:40:02 +01:00
Prevent crash
This commit is contained in:
@@ -811,7 +811,7 @@ public class FragmentSetup extends FragmentBase implements SharedPreferences.OnS
|
||||
|
||||
@Override
|
||||
public void onSharedPreferenceChanged(SharedPreferences prefs, String key) {
|
||||
if ("poll_interval".equals(key))
|
||||
if ("poll_interval".equals(key) && cbAlways != null)
|
||||
cbAlways.setChecked(ServiceSynchronize.getPollInterval(getContext()) == 0);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user