mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2026-11-02 19:47:36 +00:00
まちがえてrequireActivityを使っていたので修正
This commit is contained in:
1 file changed
+1
-1
+1
-1
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user