Aperture: change to FlashMode.OFF before switching usecases

Not all cameras might have the same flash modes.

If front facing camera is switched to screen flash mode,
and the camera flip button is pressed to switch to the back
camera, the app crashes with the following error.

Not a front camera despite setting FLASH_MODE_SCREEN.

CameraX disallows FLASH_MODE_SCREEN usage on back camera.

Aperture does not switch the flash mode before switching
camera usecase.

Fix this by changing to FlashMode.OFF before switching
usecase.

Change-Id: I77e5144120ec1724e175c84400b7346da74bc779
1 file changed