mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-02 19:10:11 +01:00
Allow manual sync when polling
This commit is contained in:
@@ -1312,7 +1312,8 @@ public class ServiceSynchronize extends LifecycleService {
|
||||
static void process(Context context) {
|
||||
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
|
||||
boolean enabled = prefs.getBoolean("enabled", true);
|
||||
if (!enabled)
|
||||
int pollInterval = prefs.getInt("poll_interval", 0);
|
||||
if (!enabled || pollInterval > 0)
|
||||
onshot(context);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user