mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-17 19:38:08 +00:00
Updated icon for active call in calls list
This commit is contained in:
parent
6d0886423c
commit
78eec3f6c8
4 changed files with 15 additions and 2 deletions
|
|
@ -290,11 +290,14 @@ class LinphoneUtils {
|
|||
Call.State.Pausing, Call.State.Paused, Call.State.PausedByRemote -> {
|
||||
AppUtils.getString(R.string.call_state_paused)
|
||||
}
|
||||
Call.State.Resuming -> {
|
||||
AppUtils.getString(R.string.call_state_resuming)
|
||||
}
|
||||
Call.State.End, Call.State.Released, Call.State.Error -> {
|
||||
AppUtils.getString(R.string.call_state_ended)
|
||||
}
|
||||
else -> {
|
||||
// TODO: handle other states
|
||||
// TODO: handle other states?
|
||||
""
|
||||
}
|
||||
}
|
||||
|
|
|
|||
9
app/src/main/res/drawable/phone_call.xml
Normal file
9
app/src/main/res/drawable/phone_call.xml
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="256"
|
||||
android:viewportHeight="256">
|
||||
<path
|
||||
android:pathData="M152.27,37.93a8,8 0,0 1,9.8 -5.66,86.22 86.22,0 0,1 61.66,61.66 8,8 0,0 1,-5.66 9.8A8.23,8.23 0,0 1,216 104a8,8 0,0 1,-7.73 -5.94,70.35 70.35,0 0,0 -50.33,-50.33A8,8 0,0 1,152.27 37.93ZM149.94,79.73c13.79,3.68 22.65,12.54 26.33,26.33A8,8 0,0 0,184 112a8.23,8.23 0,0 0,2.07 -0.27,8 8,0 0,0 5.66,-9.8c-5.12,-19.16 -18.5,-32.54 -37.66,-37.66a8,8 0,1 0,-4.13 15.46ZM231.88,175.08A56.26,56.26 0,0 1,176 224C96.6,224 32,159.4 32,80A56.26,56.26 0,0 1,80.92 24.12a16,16 0,0 1,16.62 9.52l21.12,47.15 0,0.12A16,16 0,0 1,117.39 96c-0.18,0.27 -0.37,0.52 -0.57,0.77L96,121.45c7.49,15.22 23.41,31 38.83,38.51l24.34,-20.71a8.12,8.12 0,0 1,0.75 -0.56,16 16,0 0,1 15.17,-1.4l0.13,0.06 47.11,21.11A16,16 0,0 1,231.88 175.08ZM216,173.08s-0.07,0 -0.11,0h0l-47,-21.05 -24.35,20.71a8.44,8.44 0,0 1,-0.74 0.56,16 16,0 0,1 -15.75,1.14c-18.73,-9.05 -37.4,-27.58 -46.46,-46.11a16,16 0,0 1,1 -15.7,6.13 6.13,0 0,1 0.57,-0.77L104,87.15l-21,-47a0.61,0.61 0,0 1,0 -0.12A40.2,40.2 0,0 0,48 80,128.14 128.14,0 0,0 176,208 40.21,40.21 0,0 0,216 173.07Z"
|
||||
android:fillColor="#4e6074"/>
|
||||
</vector>
|
||||
|
|
@ -63,7 +63,7 @@
|
|||
android:layout_width="24dp"
|
||||
android:layout_height="24dp"
|
||||
android:layout_marginEnd="5dp"
|
||||
android:src="@{model.isPaused ? @drawable/pause_call : @drawable/phone, default=@drawable/pause_call}"
|
||||
android:src="@{model.isPaused ? @drawable/pause_call : @drawable/phone_call, default=@drawable/pause_call}"
|
||||
app:tint="@color/gray_main2_500"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
|
|
|
|||
|
|
@ -294,6 +294,7 @@
|
|||
<string name="call_state_incoming_received">Incoming</string>
|
||||
<string name="call_state_connected">Active</string>
|
||||
<string name="call_state_paused">Paused</string>
|
||||
<string name="call_state_resuming">Resuming…</string>
|
||||
<string name="call_state_ended">Ended</string>
|
||||
<string name="calls_list_title">Calls list</string>
|
||||
<string name="call_transfer_title">Transfer call to</string>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue