From 41d2bda80bf065bf3af022cdc4d36eceb2a49ffb Mon Sep 17 00:00:00 2001 From: jackkray Date: Tue, 23 Jul 2024 16:24:17 +0200 Subject: [PATCH] fix(capture-sdk): Hide activityIndicator after recognition fails PM-90 --- .../net/gini/android/capture/camera/CameraFragmentImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/capture-sdk/sdk/src/main/java/net/gini/android/capture/camera/CameraFragmentImpl.java b/capture-sdk/sdk/src/main/java/net/gini/android/capture/camera/CameraFragmentImpl.java index 040914801..3b4c92ed2 100644 --- a/capture-sdk/sdk/src/main/java/net/gini/android/capture/camera/CameraFragmentImpl.java +++ b/capture-sdk/sdk/src/main/java/net/gini/android/capture/camera/CameraFragmentImpl.java @@ -1313,6 +1313,7 @@ private void handleMultiPageDocumentAndCallListener(@NonNull final Context conte new AsyncCallback() { @Override public void onSuccess(final ImageMultiPageDocument multiPageDocument) { + hideActivityIndicatorAndEnableInteraction(); if (mMultiPageDocument == null) { mInMultiPageState = true; mMultiPageDocument = multiPageDocument; @@ -1328,7 +1329,6 @@ public void onSuccess(final ImageMultiPageDocument multiPageDocument) { } LOG.info("Document imported: {}", mMultiPageDocument); updatePhotoThumbnail(); - hideActivityIndicatorAndEnableInteraction(); requestClientDocumentCheck(mMultiPageDocument); }