From 080e86d05dc5ec8eaacc2e69fc4a432c1a2e5cdb Mon Sep 17 00:00:00 2001 From: r-ca Date: Mon, 8 Jan 2024 15:11:28 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=87=E3=83=90=E3=83=83=E3=82=B0=E5=87=A6?= =?UTF-8?q?=E7=90=86=E5=AE=9F=E8=A3=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../component/scanner/ScannerDataManagerStubFragment.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/component/scanner/src/main/java/one/nem/lacerta/component/scanner/ScannerDataManagerStubFragment.java b/component/scanner/src/main/java/one/nem/lacerta/component/scanner/ScannerDataManagerStubFragment.java index 0477a6f3..bd39881b 100644 --- a/component/scanner/src/main/java/one/nem/lacerta/component/scanner/ScannerDataManagerStubFragment.java +++ b/component/scanner/src/main/java/one/nem/lacerta/component/scanner/ScannerDataManagerStubFragment.java @@ -180,10 +180,12 @@ public class ScannerDataManagerStubFragment extends Fragment { Toast.makeText(getActivity(), "documentProcessor is null", Toast.LENGTH_LONG).show(); return; } - - for (CapturedData capturedData : this.results) { - this.documentProcessor.addNewPageToLast(capturedData.getBitmap()); + Bitmap[] bitmaps = new Bitmap[results.size()]; + for (int i = 0; i < results.size(); i++) { + bitmaps[i] = results.get(i).getBitmap(); } + + this.documentProcessor.addNewPagesToLast(bitmaps); }); }