Draft: Stop reloading camera when opening fragment
Move bindCameraUseCases()
to onViewCreated()
to avoid flashing black every time we come back to the fragment.
This might be a problem though! Needs to be thoroughly tested to figure out if the camera ever gets unbound.
Maybe there's a way to check if the viewfinder gets unbound to re-bind it in onResume()
?