mirror of https://github.com/M66B/FairEmail.git
Prevent crash
This commit is contained in:
parent
79f2ec56a6
commit
bb2dac7b66
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue