@Override public void onRetry() { delete3PID(pid, callback); } })
/** * Delete a 3pid from an account * * @param pid the pid to delete * @param callback the async callback */ public void delete3Pid(final ThirdPartyIdentifier pid, final ApiCallback<Void> callback) { if (null != pid) { mDataHandler.getProfileRestClient().delete3PID(pid, new SimpleApiCallback<Void>(callback) { @Override public void onSuccess(Void info) { // refresh the third party identifiers lists refreshThirdPartyIdentifiers(callback); } }); } }