mirror of https://github.com/M66B/FairEmail.git
Implemented widget poll
This commit is contained in:
parent
9864465e8a
commit
30ec86f9da
|
@ -774,7 +774,19 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
|
|||
if (intent.getBooleanExtra("refresh", false)) {
|
||||
intent.removeExtra("refresh");
|
||||
setIntent(intent);
|
||||
// TODO: sync all
|
||||
|
||||
new SimpleTask<Void>() {
|
||||
@Override
|
||||
protected Void onExecute(Context context, Bundle args) {
|
||||
WorkerPoll.sync(context);
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onException(Bundle args, Throwable ex) {
|
||||
Log.unexpectedError(getSupportFragmentManager(), ex);
|
||||
}
|
||||
}.execute(this, new Bundle(), "view:refresh");
|
||||
}
|
||||
|
||||
String action = intent.getAction();
|
||||
|
|
Loading…
Reference in New Issue