Implemented external poll

This commit is contained in:
M66B
2019-12-07 21:08:43 +01:00
parent 14628c4d22
commit 252ffa8ee4
2 changed files with 30 additions and 20 deletions

View File

@@ -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;
}