ボタンアクションを実装

This commit is contained in:
r-ca authored and ろむねこ committed 2023-12-21 12:24:46 +09:00
1 parent 3c6541607c
commit be30ce2c62
1 file changed
+4 -1
@@ -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);
}
});
}
}