Logger.v(TAG, "Running task in thread:" + android.os.Process.myTid());
try {
validateAcquireTokenRequest(authRequest);
performAcquireTokenRequest(callbackHandle, activity, useDialog, authRequest);
} catch (final AuthenticationException authenticationException) {
<BUG>mAPIEvent.setWasApiCallSuccessful(false);
</BUG>
mAPIEvent.setCorrelationId(authRequest.getCorrelationId().toString());
mAPIEvent.stopTelemetryAndFlush();
callbackHandle.onError(authenticationException);

Logger.v(TAG, "Running task in thread:" + android.os.Process.myTid());
try {
validateAcquireTokenRequest(authRequest);
performAcquireTokenRequest(callbackHandle, activity, useDialog, authRequest);
} catch (final AuthenticationException authenticationException) {
mAPIEvent.setWasApiCallSuccessful(false, authenticationException);
mAPIEvent.setCorrelationId(authRequest.getCorrelationId().toString());
mAPIEvent.stopTelemetryAndFlush();
callbackHandle.onError(authenticationException);
