mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-02 07:06:18 +02:00
Added auto optimize setting
This commit is contained in:
@@ -828,6 +828,10 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
|
||||
if (now - start > STILL_THERE_DELAY)
|
||||
return;
|
||||
|
||||
boolean auto_optimize = prefs.getBoolean("auto_optimize", true);
|
||||
if (!auto_optimize)
|
||||
return;
|
||||
|
||||
int pollInterval = prefs.getInt("poll_interval", 0);
|
||||
if (pollInterval == 0) {
|
||||
prefs.edit().putInt("poll_interval", 30).apply();
|
||||
|
||||
Reference in New Issue
Block a user