mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-01 06:38:29 +02:00
Replace work manager by alarm for polling
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user