mirror of
https://github.com/M66B/FairEmail.git
synced 2025-12-28 00:20:50 +01:00
Reload on delete only if synchronizing
This commit is contained in:
@@ -840,8 +840,11 @@ public class FragmentAccount extends FragmentEx {
|
||||
@Override
|
||||
protected Void onLoad(Context context, Bundle args) {
|
||||
long id = args.getLong("id");
|
||||
DB.getInstance(context).account().deleteAccount(id);
|
||||
ServiceSynchronize.reload(getContext(), "delete account");
|
||||
DB db = DB.getInstance(context);
|
||||
EntityAccount account = db.account().getAccount(id);
|
||||
db.account().deleteAccount(id);
|
||||
if (account.synchronize)
|
||||
ServiceSynchronize.reload(getContext(), "delete account");
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user