mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-02 19:10:11 +01:00
Switch to alarm manager for more control over polling
This commit is contained in:
@@ -819,19 +819,7 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
|
||||
if (intent.getBooleanExtra("refresh", false)) {
|
||||
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");
|
||||
ServiceSynchronize.poll(this, null);
|
||||
}
|
||||
|
||||
String action = intent.getAction();
|
||||
|
||||
Reference in New Issue
Block a user