mirror of https://github.com/M66B/FairEmail.git
Fixed fast poll warning
This commit is contained in:
parent
126da6e63c
commit
6229a6fd45
|
@ -199,7 +199,7 @@ public class FragmentOptionsSynchronize extends FragmentBase implements SharedPr
|
||||||
if (value != current) {
|
if (value != current) {
|
||||||
adapterView.setTag(value);
|
adapterView.setTag(value);
|
||||||
prefs.edit().putInt("poll_interval", value).apply();
|
prefs.edit().putInt("poll_interval", value).apply();
|
||||||
tvPollBattery.setVisibility(value < 15 ? View.VISIBLE : View.GONE);
|
tvPollBattery.setVisibility(value > 0 && value < 15 ? View.VISIBLE : View.GONE);
|
||||||
grpExempted.setVisibility(value == 0 ? View.GONE : View.VISIBLE);
|
grpExempted.setVisibility(value == 0 ? View.GONE : View.VISIBLE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -461,7 +461,7 @@ public class FragmentOptionsSynchronize extends FragmentBase implements SharedPr
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
tvPollBattery.setVisibility(pollInterval < 15 ? View.VISIBLE : View.GONE);
|
tvPollBattery.setVisibility(pollInterval > 0 && pollInterval < 15 ? View.VISIBLE : View.GONE);
|
||||||
grpExempted.setVisibility(pollInterval == 0 ? View.GONE : View.VISIBLE);
|
grpExempted.setVisibility(pollInterval == 0 ? View.GONE : View.VISIBLE);
|
||||||
|
|
||||||
swSchedule.setChecked(prefs.getBoolean("schedule", false) && pro);
|
swSchedule.setChecked(prefs.getBoolean("schedule", false) && pro);
|
||||||
|
|
Loading…
Reference in New Issue