mirror of https://github.com/M66B/FairEmail.git
Allow manual sync when polling
This commit is contained in:
parent
8082fffbf7
commit
3a2a369aff
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue