Disable video toggle button during screen sharing.

This commit is contained in:
Onuray Sahin 2022-05-09 17:26:35 +03:00
parent 9a1dbb27d4
commit 3a02e8405d

View File

@ -89,6 +89,7 @@ class CallControlsView @JvmOverloads constructor(
views.videoToggleIcon.setImageResource(R.drawable.ic_video_off) views.videoToggleIcon.setImageResource(R.drawable.ic_video_off)
views.videoToggleIcon.contentDescription = resources.getString(R.string.a11y_start_camera) views.videoToggleIcon.contentDescription = resources.getString(R.string.a11y_start_camera)
} }
views.videoToggleIcon.isEnabled = !state.isSharingScreen
when (callState) { when (callState) {
is CallState.LocalRinging -> { is CallState.LocalRinging -> {