update the front/read camera icon as appropriate at toggling
This commit is contained in:
parent
3daa79590f
commit
a39e7ad233
|
@ -380,6 +380,7 @@ class PreviewCameraTwo : ViewGroup, TextureView.SurfaceTextureListener, MyPrevie
|
||||||
mIsFocusSupported = get(CameraCharacteristics.CONTROL_AF_AVAILABLE_MODES).size > 1
|
mIsFocusSupported = get(CameraCharacteristics.CONTROL_AF_AVAILABLE_MODES).size > 1
|
||||||
}
|
}
|
||||||
mActivity.setFlashAvailable(mIsFlashSupported)
|
mActivity.setFlashAvailable(mIsFlashSupported)
|
||||||
|
mActivity.updateCameraIcon(mUseFrontCamera)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
} catch (e: Exception) {
|
} catch (e: Exception) {
|
||||||
|
|
Loading…
Reference in New Issue