Implemented widget poll

pull/169/head
M66B 5 years ago
parent 9864465e8a
commit 30ec86f9da

@ -774,7 +774,19 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
if (intent.getBooleanExtra("refresh", false)) { if (intent.getBooleanExtra("refresh", false)) {
intent.removeExtra("refresh"); intent.removeExtra("refresh");
setIntent(intent); 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(); String action = intent.getAction();

Loading…
Cancel
Save