mirror of
https://github.com/M66B/FairEmail.git
synced 2025-12-26 07:32:08 +01:00
Reload on delete only if synchronizing
This commit is contained in:
@@ -521,8 +521,11 @@ public class FragmentIdentity extends FragmentEx {
|
||||
@Override
|
||||
protected Void onLoad(Context context, Bundle args) {
|
||||
long id = args.getLong("id");
|
||||
DB.getInstance(context).identity().deleteIdentity(id);
|
||||
ServiceSynchronize.reload(getContext(), "delete identity");
|
||||
DB db = DB.getInstance(context);
|
||||
EntityIdentity identity = db.identity().getIdentity(id);
|
||||
db.identity().deleteIdentity(id);
|
||||
if (identity.synchronize)
|
||||
ServiceSynchronize.reload(getContext(), "delete identity");
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user