ボタンアクションを実装

This commit is contained in:
ろむねこ 2023-12-20 12:02:07 +09:00
parent 81411d5271
commit 7de08a4d62
No known key found for this signature in database
GPG Key ID: FA1F39A1BA37D168

View File

@ -66,7 +66,10 @@ public class ScannerDatabaManagerStubFragment extends Fragment {
super.onViewCreated(view, savedInstanceState);
view.findViewById(R.id.button_call_camera).setOnClickListener(v -> {
Intent takePictureIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
if (takePictureIntent.resolveActivity(requireActivity().getPackageManager()) != null) {
cameraLauncher.launch(takePictureIntent);
}
});
}
}