|
|
@ -521,7 +521,10 @@ public class FragmentIdentity extends FragmentEx {
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
protected Void onLoad(Context context, Bundle args) {
|
|
|
|
protected Void onLoad(Context context, Bundle args) {
|
|
|
|
long id = args.getLong("id");
|
|
|
|
long id = args.getLong("id");
|
|
|
|
DB.getInstance(context).identity().deleteIdentity(id);
|
|
|
|
DB db = DB.getInstance(context);
|
|
|
|
|
|
|
|
EntityIdentity identity = db.identity().getIdentity(id);
|
|
|
|
|
|
|
|
db.identity().deleteIdentity(id);
|
|
|
|
|
|
|
|
if (identity.synchronize)
|
|
|
|
ServiceSynchronize.reload(getContext(), "delete identity");
|
|
|
|
ServiceSynchronize.reload(getContext(), "delete identity");
|
|
|
|
return null;
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
}
|
|
|
|