From 6622bd2fc0007d0c274bfa60932af37ab169f7f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=82=8D=E3=82=80=E3=81=AD=E3=81=93?= <66072112+r-ca@users.noreply.github.com> Date: Thu, 21 Dec 2023 12:34:46 +0900 Subject: [PATCH] =?UTF-8?q?Revert=20"ArrayList=E3=81=AB=E5=A4=89=E6=9B=B4"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit be80e42dc5f029e0745dfb31a1eac47ebb328728. --- .../ScannerDatabaManagerStubFragment.java | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/component/scanner/src/main/java/one/nem/lacerta/component/scanner/ScannerDatabaManagerStubFragment.java b/component/scanner/src/main/java/one/nem/lacerta/component/scanner/ScannerDatabaManagerStubFragment.java index 18a87139..9206327f 100644 --- a/component/scanner/src/main/java/one/nem/lacerta/component/scanner/ScannerDatabaManagerStubFragment.java +++ b/component/scanner/src/main/java/one/nem/lacerta/component/scanner/ScannerDatabaManagerStubFragment.java @@ -1,6 +1,5 @@ package one.nem.lacerta.component.scanner; -import android.app.Activity; import android.content.Intent; import android.graphics.Bitmap; import android.os.Bundle; @@ -15,8 +14,6 @@ import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; -import java.util.ArrayList; - /** * A simple {@link Fragment} subclass. * Use the {@link ScannerDatabaManagerStubFragment#newInstance} factory method to @@ -25,18 +22,7 @@ import java.util.ArrayList; public class ScannerDatabaManagerStubFragment extends Fragment { // Results - private ArrayList results = new ArrayList<>(); - private final ActivityResultLauncher cameraLauncher = registerForActivityResult( - new ActivityResultContracts.StartActivityForResult(), - result -> { - if (result.getResultCode() == Activity.RESULT_OK) { - Intent data = result.getData(); - Bundle extras = data.getExtras(); - Bitmap imageBitmap = (Bitmap) extras.get("data"); - - } - } - ); + private Bitmap[] imageBitmaps; public ScannerDatabaManagerStubFragment() { // Required empty public constructor