* Validate view attached on api callback
@@ -77,10 +77,12 @@ import java.util.List;
new TaggedCallback<List<IdentificationType>>(ApiUtil.RequestOrigin.GET_IDENTIFICATION_TYPES) {
@Override
public void onSuccess(final List<IdentificationType> identificationTypes) {
+ if(isViewAttached()) {
resolveIdentificationTypes(identificationTypes);
getView().hideProgressBar();
getView().showIdentificationNumberFocus();
}
+ }
@Override
public void onFailure(final MercadoPagoError error) {
