Replace work manager by alarm for polling

This commit is contained in:
M66B
2020-01-12 15:38:00 +01:00
parent 70d1344857
commit ff0e5641fc
6 changed files with 92 additions and 147 deletions

View File

@@ -820,18 +820,7 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
intent.removeExtra("refresh");
setIntent(intent);
new SimpleTask<Void>() {
@Override
protected Void onExecute(Context context, Bundle args) {
WorkerPoll.sync(context, null);
return null;
}
@Override
protected void onException(Bundle args, Throwable ex) {
Log.unexpectedError(getSupportFragmentManager(), ex);
}
}.execute(this, new Bundle(), "view:refresh");
ServiceUI.sync(this, null);
}
String action = intent.getAction();