mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-29 21:34:44 +02:00
Disable auto optimize on always sync
This commit is contained in:
@@ -235,6 +235,8 @@ public class FragmentOptionsSynchronize extends FragmentBase implements SharedPr
|
||||
if (value != current) {
|
||||
adapterView.setTag(value);
|
||||
prefs.edit().putInt("poll_interval", value).apply();
|
||||
if (value == 0)
|
||||
prefs.edit().remove("auto_optimize").apply();
|
||||
tvPollBattery.setVisibility(value > 0 && value < 15 ? View.VISIBLE : View.GONE);
|
||||
grpExempted.setVisibility(value == 0 ? View.GONE : View.VISIBLE);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user