mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-27 11:25:13 +01:00
Implemented external poll
This commit is contained in:
@@ -76,7 +76,13 @@ public class ServiceExternal extends Service {
|
||||
String action = intent.getAction();
|
||||
|
||||
if (ACTION_POLL.equals(action)) {
|
||||
// TODO: sync all
|
||||
final Context context = getApplicationContext();
|
||||
executor.submit(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
WorkerPoll.sync(context);
|
||||
}
|
||||
});
|
||||
return START_NOT_STICKY;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user