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