From a9273561b140642377c5be2ec1abc7bc881c663e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=82=8D=E3=82=80=E3=81=AD=E3=81=93?= Date: Wed, 20 Dec 2023 12:13:06 +0900 Subject: [PATCH] =?UTF-8?q?=E3=81=BE=E3=81=A1=E3=81=8C=E3=81=88=E3=81=A6re?= =?UTF-8?q?quireActivity=E3=82=92=E4=BD=BF=E3=81=A3=E3=81=A6=E3=81=84?= =?UTF-8?q?=E3=81=9F=E3=81=AE=E3=81=A7=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../component/scanner/ScannerDataManagerStubFragment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 4095b14d..fc11c575 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 @@ -68,7 +68,7 @@ public class ScannerDataManagerStubFragment extends Fragment { view.findViewById(R.id.button_call_camera).setOnClickListener(v -> { Log.d("ScannerDataManagerStubFragment", "button_call_camera clicked"); Intent takePictureIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); - if (takePictureIntent.resolveActivity(requireActivity().getPackageManager()) != null) { + if (takePictureIntent.resolveActivity(getActivity().getPackageManager()) != null) { Log.d("ScannerDataManagerStubFragment", "camera available"); cameraLauncher.launch(takePictureIntent); }