Skip to content

Commit

Permalink
Merge pull request #505 from gini/PM-90_Camera-Infinity-loader-appears
Browse files Browse the repository at this point in the history
fix(capture-sdk): Hide activityIndicator after recognition fails
  • Loading branch information
GeraltRiv authored Jul 30, 2024
2 parents dae8a97 + 41d2bda commit 17beca7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1313,6 +1313,7 @@ private void handleMultiPageDocumentAndCallListener(@NonNull final Context conte
new AsyncCallback<ImageMultiPageDocument, ImportedFileValidationException>() {
@Override
public void onSuccess(final ImageMultiPageDocument multiPageDocument) {
hideActivityIndicatorAndEnableInteraction();
if (mMultiPageDocument == null) {
mInMultiPageState = true;
mMultiPageDocument = multiPageDocument;
Expand All @@ -1328,7 +1329,6 @@ public void onSuccess(final ImageMultiPageDocument multiPageDocument) {
}
LOG.info("Document imported: {}", mMultiPageDocument);
updatePhotoThumbnail();
hideActivityIndicatorAndEnableInteraction();
requestClientDocumentCheck(mMultiPageDocument);
}

Expand Down

0 comments on commit 17beca7

Please sign in to comment.