mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-23 00:13:16 +00:00
Revert "まちがえてrequireActivityを使っていたので修正"
This reverts commit 8e97dd6972
.
This commit is contained in:
parent
89b12cf10a
commit
777c75477d
|
@ -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(getActivity().getPackageManager()) != null) {
|
||||
if (takePictureIntent.resolveActivity(requireActivity().getPackageManager()) != null) {
|
||||
Log.d("ScannerDataManagerStubFragment", "camera available");
|
||||
cameraLauncher.launch(takePictureIntent);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user