mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-30 03:23:16 +00:00
ボタンアクションを実装
This commit is contained in:
parent
81411d5271
commit
7de08a4d62
|
@ -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);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user