Fixed anim issue when opening call stats using quality icon in status bar instead of button in menu
This commit is contained in:
parent
bd222124ef
commit
0f3dba4d38
3 changed files with 4 additions and 4 deletions
|
@ -70,7 +70,7 @@ class StatusFragment : GenericFragment<VoipStatusFragmentBinding>() {
|
|||
viewLifecycleOwner
|
||||
) {
|
||||
it.consume {
|
||||
controlsViewModel.showCallStats()
|
||||
controlsViewModel.showCallStats(skipAnimation = true)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -374,8 +374,8 @@ class ControlsViewModel : ViewModel() {
|
|||
goToCallsListEvent.value = Event(true)
|
||||
}
|
||||
|
||||
fun showCallStats() {
|
||||
hideExtraButtons(false)
|
||||
fun showCallStats(skipAnimation: Boolean = false) {
|
||||
hideExtraButtons(skipAnimation)
|
||||
callStatsVisible.value = true
|
||||
}
|
||||
|
||||
|
|
|
@ -40,7 +40,7 @@
|
|||
android:text="@string/call_action_numpad"/>
|
||||
|
||||
<TextView
|
||||
android:onClick="@{() -> controlsViewModel.showCallStats()}"
|
||||
android:onClick="@{() -> controlsViewModel.showCallStats(false)}"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
|
|
Loading…
Reference in a new issue