Update call icon depending on auto initiate video calls policy
This commit is contained in:
parent
888e136368
commit
bb5903f72c
3 changed files with 4 additions and 1 deletions
|
@ -150,6 +150,7 @@ class DialerFragment : Fragment() {
|
|||
coreContext.core.nativePreviewWindowId = binding.videoPreviewWindow
|
||||
}
|
||||
viewModel.updateShowVideoPreview()
|
||||
viewModel.autoInitiateVideoCalls.value = coreContext.core.videoActivationPolicy.automaticallyInitiate
|
||||
uploadLogsInitiatedByUs = false
|
||||
}
|
||||
|
||||
|
|
|
@ -39,6 +39,8 @@ class DialerViewModel : LogsUploadViewModel() {
|
|||
|
||||
val showSwitchCamera = MutableLiveData<Boolean>()
|
||||
|
||||
val autoInitiateVideoCalls = MutableLiveData<Boolean>()
|
||||
|
||||
private var addressWaitingNetworkToBeCalled: String? = null
|
||||
private var timeAtWitchWeTriedToCall: Long = 0
|
||||
|
||||
|
|
|
@ -104,7 +104,7 @@
|
|||
android:layout_weight="1"
|
||||
android:background="@drawable/call"
|
||||
android:padding="12dp"
|
||||
android:src="@drawable/call_audio_start" />
|
||||
android:src="@{viewModel.autoInitiateVideoCalls ? @drawable/call_video_start : @drawable/call_audio_start, default=@drawable/call_audio_start}" />
|
||||
|
||||
<ImageView
|
||||
android:onClick="@{addCallClickListener}"
|
||||
|
|
Loading…
Reference in a new issue