Fix audio level background showing during ringing.
This commit is contained in:
parent
853862c475
commit
7dfda2598d
1 changed files with 2 additions and 1 deletions
|
@ -46,13 +46,14 @@ class AudioIndicatorView(context: Context, attrs: AttributeSet) : FrameLayout(co
|
|||
inflate(context, R.layout.audio_indicator_view, this)
|
||||
setWillNotDraw(false)
|
||||
|
||||
setBackgroundResource(R.drawable.circle_tintable)
|
||||
backgroundTintList = ColorStateList.valueOf(ContextCompat.getColor(context, R.color.transparent_black_70))
|
||||
}
|
||||
|
||||
private val micMuted: View = findViewById(R.id.mic_muted)
|
||||
|
||||
fun bind(microphoneEnabled: Boolean, level: CallParticipant.AudioLevel?) {
|
||||
setBackgroundResource(R.drawable.circle_tintable)
|
||||
|
||||
micMuted.visible = !microphoneEnabled
|
||||
|
||||
val wasShowingAudioLevel = showAudioLevel
|
||||
|
|
Loading…
Add table
Reference in a new issue