Revert "ログ追加"

This reverts commit 0bf6b3fa1a.
This commit is contained in:
ろむねこ 2023-12-21 12:34:46 +09:00 committed by GitHub
parent 777c75477d
commit ce6e76f37f

View File

@ -10,7 +10,6 @@ import androidx.activity.result.contract.ActivityResultContracts;
import androidx.fragment.app.Fragment;
import android.provider.MediaStore;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
@ -66,15 +65,10 @@ public class ScannerDataManagerStubFragment extends Fragment {
super.onViewCreated(view, savedInstanceState);
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) {
Log.d("ScannerDataManagerStubFragment", "camera available");
cameraLauncher.launch(takePictureIntent);
}
else {
Log.d("ScannerDataManagerStubFragment", "camera not available");
}
});
}
}