Fixed anim issue when opening call stats using quality icon in status bar instead of button in menu

This commit is contained in:
Sylvain Berfini 2022-02-14 13:43:48 +01:00
parent bd222124ef
commit 0f3dba4d38
3 changed files with 4 additions and 4 deletions

View file

@ -70,7 +70,7 @@ class StatusFragment : GenericFragment<VoipStatusFragmentBinding>() {
viewLifecycleOwner viewLifecycleOwner
) { ) {
it.consume { it.consume {
controlsViewModel.showCallStats() controlsViewModel.showCallStats(skipAnimation = true)
} }
} }
} }

View file

@ -374,8 +374,8 @@ class ControlsViewModel : ViewModel() {
goToCallsListEvent.value = Event(true) goToCallsListEvent.value = Event(true)
} }
fun showCallStats() { fun showCallStats(skipAnimation: Boolean = false) {
hideExtraButtons(false) hideExtraButtons(skipAnimation)
callStatsVisible.value = true callStatsVisible.value = true
} }

View file

@ -40,7 +40,7 @@
android:text="@string/call_action_numpad"/> android:text="@string/call_action_numpad"/>
<TextView <TextView
android:onClick="@{() -> controlsViewModel.showCallStats()}" android:onClick="@{() -> controlsViewModel.showCallStats(false)}"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1" android:layout_weight="1"