mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-24 07:01:05 +00:00
parent
d7eda301df
commit
cf418407f2
1 changed files with 1 additions and 6 deletions
|
@ -844,14 +844,12 @@ public class AdapterFolder extends RecyclerView.Adapter<AdapterFolder.ViewHolder
|
||||||
private void onActionSync(boolean children) {
|
private void onActionSync(boolean children) {
|
||||||
Bundle args = new Bundle();
|
Bundle args = new Bundle();
|
||||||
args.putLong("folder", folder.id);
|
args.putLong("folder", folder.id);
|
||||||
args.putLong("account", folder.account);
|
|
||||||
args.putBoolean("children", children);
|
args.putBoolean("children", children);
|
||||||
|
|
||||||
new SimpleTask<Void>() {
|
new SimpleTask<Void>() {
|
||||||
@Override
|
@Override
|
||||||
protected Void onExecute(Context context, Bundle args) {
|
protected Void onExecute(Context context, Bundle args) {
|
||||||
long fid = args.getLong("folder");
|
long fid = args.getLong("folder");
|
||||||
long aid = args.getLong("account");
|
|
||||||
boolean children = args.getBoolean("children");
|
boolean children = args.getBoolean("children");
|
||||||
|
|
||||||
if (!ConnectionHelper.getNetworkState(context).isSuitable())
|
if (!ConnectionHelper.getNetworkState(context).isSuitable())
|
||||||
|
@ -890,10 +888,7 @@ public class AdapterFolder extends RecyclerView.Adapter<AdapterFolder.ViewHolder
|
||||||
db.endTransaction();
|
db.endTransaction();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (children)
|
|
||||||
ServiceSynchronize.eval(context, "refresh/folder");
|
ServiceSynchronize.eval(context, "refresh/folder");
|
||||||
else
|
|
||||||
ServiceSynchronize.reload(context, aid, true, "refresh/folder");
|
|
||||||
|
|
||||||
if (!now)
|
if (!now)
|
||||||
throw new IllegalArgumentException(context.getString(R.string.title_no_connection));
|
throw new IllegalArgumentException(context.getString(R.string.title_no_connection));
|
||||||
|
|
Loading…
Reference in a new issue