surface view does not show camera after i gave permission
问题 public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, Bundle savedInstanceState) { View view = inflater.inflate(R.layout.fragment_camera, container, false); cameraId = Camera.CameraInfo.CAMERA_FACING_BACK; flipCamera = view.findViewById(R.id.flipCamera); flashCameraButton = view.findViewById(R.id.flash); captureImage = view.findViewById(R.id.captureImage); surfaceView = view.findViewById(R.id.surfaceView); surfaceHolder = surfaceView.getHolder(); surfaceHolder