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

This commit is contained in:
Nicholas Tinsley
2024-06-10 11:01:56 -04:00
parent 57b6b8dcf1
commit 21b518da7a
3 changed files with 8 additions and 2 deletions
@@ -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