Skip to content

Draft: Stop reloading camera when opening fragment

Matthieu requested to merge camera_fragment_optimisation into master

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() ?

Merge request reports