The camera latest updates cause the ImageCapture use case to halt the preview when taking a picture. When running the same code in the versions below, saving an image happens in the background and does not have an effect on the preview. But when updating to version 5-25/6-26 the preview stops until the image is saved - it is not just the preview, when recording and capturing an image while recording, the video stops same as the preview did, so essentially when capturing an image the preview gets halted but the camera is not disconnected so even the halted preview is still being recorded.
Last stable versions of the dependencies that probably cause the problem(Even updating each only causes the problem described above):
"androidx.camera:camera-core:1.1.0-alpha04"
implementation "androidx.camera:camera-camera2:1.1.0-alpha04"
implementation "androidx.camera:camera-lifecycle:1.1.0-alpha04"
implementation "androidx.camera:camera-extensions:1.0.0-alpha24"
Is it a bug? is it intended to be this way? and if it is, is there a way to avoid this behavior?