Don't show volume indicator nor switch camera button until incoming call connects.

This commit is contained in:
Nicholas Tinsley
2024-06-07 14:16:52 -04:00
parent 57b6b8dcf1
commit 21b518da7a
3 changed files with 8 additions and 2 deletions

View File

@@ -54,6 +54,8 @@ class AudioIndicatorView(context: Context, attrs: AttributeSet) : FrameLayout(co
fun bind(microphoneEnabled: Boolean, level: CallParticipant.AudioLevel?) {
setBackgroundResource(R.drawable.circle_tintable)
this.visible = !microphoneEnabled || level != null
micMuted.visible = !microphoneEnabled
val wasShowingAudioLevel = showAudioLevel