Don't show volume indicator nor switch camera button until incoming call connects.
This commit is contained in:
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
|
||||
|
|
|
@ -90,8 +90,10 @@
|
|||
android:layout_height="28dp"
|
||||
android:layout_marginStart="@dimen/webrtc_audio_indicator_margin"
|
||||
android:layout_marginBottom="@dimen/webrtc_audio_indicator_margin"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent" />
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
tools:visibility="visible" />
|
||||
|
||||
<FrameLayout
|
||||
android:id="@+id/call_participant_switch_camera"
|
||||
|
|
|
@ -81,9 +81,11 @@
|
|||
android:clickable="false"
|
||||
android:contentDescription="@string/WebRtcCallView__toggle_camera_direction"
|
||||
android:scaleType="fitXY"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:srcCompat="@drawable/webrtc_call_screen_camera_toggle" />
|
||||
app:srcCompat="@drawable/webrtc_call_screen_camera_toggle"
|
||||
tools:visibility="visible" />
|
||||
|
||||
<androidx.constraintlayout.widget.Barrier
|
||||
android:id="@+id/call_screen_above_controls_barrier"
|
||||
|
|
Loading…
Add table
Reference in a new issue