mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-27 04:04:43 +01:00
New Android 12+ audio route picker for calls.
This commit is contained in:
10
app/src/main/res/drawable/symbol_headphones_filed_24.xml
Normal file
10
app/src/main/res/drawable/symbol_headphones_filed_24.xml
Normal file
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24">
|
||||
<path
|
||||
android:fillColor="@color/core_white"
|
||||
android:pathData="M3.88 11.5c0-4.49 3.63-8.13 8.12-8.13 4.49 0 8.13 3.64 8.13 8.13V12h-2c-1.39 0-2.5 1.12-2.5 2.5V18c0 1.38 1.11 2.5 2.5 2.5h1.25c1.38 0 2.5-1.12 2.5-2.5v-6.5c0-5.45-4.43-9.88-9.88-9.88-5.45 0-9.88 4.43-9.88 9.88V18c0 1.38 1.12 2.5 2.5 2.5h1.25c1.39 0 2.5-1.12 2.5-2.5v-3.5c0-1.38-1.11-2.5-2.5-2.5h-2v-0.5Z"/>
|
||||
</vector>
|
||||
10
app/src/main/res/drawable/symbol_headphones_outline_24.xml
Normal file
10
app/src/main/res/drawable/symbol_headphones_outline_24.xml
Normal file
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24">
|
||||
<path
|
||||
android:fillColor="#FF000000"
|
||||
android:pathData="M3.88 11.13h2.37c1.59 0 2.88 1.28 2.88 2.87v3.5c0 1.59-1.3 2.88-2.88 2.88H5c-1.59 0-2.88-1.3-2.88-2.88v-6c0-5.45 4.43-9.88 9.88-9.88 5.45 0 9.88 4.43 9.88 9.88v6c0 1.59-1.3 2.88-2.88 2.88h-1.25c-1.59 0-2.88-1.3-2.88-2.88V14c0-1.59 1.3-2.88 2.88-2.88h2.37c-0.2-4.3-3.76-7.74-8.12-7.74-4.36 0-7.92 3.43-8.12 7.75Zm16.24 1.74h-2.37c-0.62 0-1.13 0.5-1.13 1.13v3.5c0 0.62 0.5 1.13 1.13 1.13H19c0.62 0 1.13-0.5 1.13-1.13v-4.63Zm-16.25 0v4.63c0 0.62 0.5 1.13 1.13 1.13h1.25c0.62 0 1.13-0.5 1.13-1.13V14c0-0.62-0.5-1.13-1.13-1.13H3.87Z"/>
|
||||
</vector>
|
||||
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24">
|
||||
<path
|
||||
android:fillColor="#FF000000"
|
||||
android:pathData="M12.13 3c0-0.48 0.39-0.88 0.87-0.88 4.9 0 8.88 3.98 8.88 8.88 0 0.48-0.4 0.88-0.88 0.88s-0.88-0.4-0.88-0.88c0-3.94-3.19-7.13-7.12-7.13-0.48 0-0.88-0.39-0.88-0.87Z"/>
|
||||
<path
|
||||
android:fillColor="#FF000000"
|
||||
android:pathData="M3.39 4.44c1.2-1.2 3.18-1.06 4.2 0.29l2.05 2.7c0.85 1.11 0.74 2.68-0.25 3.66l-0.97 0.98c0.03 0.08 0.08 0.2 0.16 0.33 0.26 0.46 0.72 1.07 1.33 1.69 0.62 0.61 1.23 1.07 1.69 1.33 0.14 0.08 0.25 0.13 0.33 0.16l0.98-0.97c0.98-1 2.55-1.1 3.66-0.25l2.7 2.05c1.35 1.02 1.48 3 0.29 4.2l-0.42 0.41c-1.49 1.5-3.72 2.32-5.87 1.58-2.67-0.91-5.18-2.44-7.3-4.56-2.13-2.13-3.66-4.64-4.57-7.3-0.74-2.16 0.08-4.4 1.58-5.88l0.41-0.42Zm2.8 1.35c-0.38-0.5-1.12-0.56-1.56-0.1l-0.41 0.4c-1.15 1.14-1.64 2.7-1.17 4.08 0.83 2.42 2.22 4.7 4.15 6.63 1.93 1.93 4.21 3.32 6.63 4.15 1.38 0.47 2.94-0.02 4.08-1.17l0.4-0.4c0.46-0.45 0.4-1.2-0.1-1.58l-2.7-2.05c-0.41-0.31-1-0.27-1.37 0.1l-1.17 1.17c-0.41 0.4-0.94 0.37-1.24 0.32-0.33-0.07-0.67-0.21-0.98-0.39-0.64-0.36-1.38-0.93-2.07-1.63-0.7-0.7-1.27-1.43-1.63-2.07-0.18-0.31-0.32-0.65-0.39-0.98-0.05-0.3-0.09-0.83 0.32-1.24l1.18-1.17c0.36-0.37 0.4-0.96 0.09-1.37L6.2 5.79Z"/>
|
||||
<path
|
||||
android:fillColor="#FF000000"
|
||||
android:pathData="M13 6.13c-0.48 0-0.88 0.39-0.88 0.87s0.4 0.88 0.88 0.88c1.73 0 3.13 1.4 3.13 3.12 0 0.48 0.39 0.88 0.87 0.88s0.88-0.4 0.88-0.88c0-2.7-2.19-4.88-4.88-4.88Z"/>
|
||||
</vector>
|
||||
16
app/src/main/res/drawable/symbol_speaker_outline_24.xml
Normal file
16
app/src/main/res/drawable/symbol_speaker_outline_24.xml
Normal file
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24">
|
||||
<path
|
||||
android:fillColor="#FF000000"
|
||||
android:pathData="M10.6 3.66c1.02-1.02 2.78-0.3 2.78 1.15V19.2c0 1.45-1.76 2.17-2.78 1.15l-3.46-3.46H4c-1.59 0-2.88-1.3-2.88-2.88v-4c0-1.59 1.3-2.87 2.88-2.87h3.14l3.46-3.47Zm1.03 1.45l-3.51 3.5C7.95 8.79 7.73 8.89 7.5 8.89H4c-0.62 0-1.13 0.5-1.13 1.12v4c0 0.62 0.5 1.13 1.13 1.13h3.5c0.23 0 0.45 0.09 0.62 0.25l3.5 3.5V5.12Z"/>
|
||||
<path
|
||||
android:fillColor="#FF000000"
|
||||
android:pathData="M16.23 6.57c0.41-0.25 0.95-0.12 1.2 0.29 0.92 1.5 1.44 3.26 1.44 5.14s-0.52 3.64-1.44 5.14c-0.25 0.41-0.79 0.54-1.2 0.3-0.41-0.26-0.54-0.8-0.3-1.21 0.76-1.23 1.2-2.68 1.2-4.23 0-1.55-0.44-3-1.2-4.23-0.24-0.41-0.11-0.95 0.3-1.2Z"/>
|
||||
<path
|
||||
android:fillColor="#FF000000"
|
||||
android:pathData="M20.28 3.92c-0.28-0.4-0.83-0.48-1.22-0.2-0.4 0.28-0.48 0.83-0.2 1.22 1.43 1.99 2.26 4.42 2.26 7.06 0 2.64-0.83 5.07-2.26 7.06-0.28 0.4-0.2 0.94 0.2 1.22s0.94 0.2 1.22-0.2c1.63-2.28 2.6-5.07 2.6-8.08s-0.97-5.8-2.6-8.08Z"/>
|
||||
</vector>
|
||||
@@ -19,13 +19,20 @@
|
||||
<item android:bottom="20dp" android:drawable="@drawable/symbol_dropdown_triangle_compat_bold_16" android:left="36dp" android:right="4dp" android:top="20dp" />
|
||||
</layer-list>
|
||||
</item>
|
||||
<item app:state_headset_selected="true">
|
||||
<item app:state_bt_headset_selected="true">
|
||||
<layer-list>
|
||||
<item android:drawable="@drawable/webrtc_call_screen_circle_checked" />
|
||||
<item android:bottom="14dp" android:drawable="@drawable/symbol_speaker_bluetooth_fill_white_24" android:left="8dp" android:right="20dp" android:top="14dp" />
|
||||
<item android:bottom="20dp" android:drawable="@drawable/symbol_dropdown_triangle_compat_bold_16" android:left="36dp" android:right="4dp" android:top="20dp" />
|
||||
</layer-list>
|
||||
</item>
|
||||
<item app:state_wired_headset_selected="true">
|
||||
<layer-list>
|
||||
<item android:drawable="@drawable/webrtc_call_screen_circle_checked" />
|
||||
<item android:bottom="14dp" android:drawable="@drawable/symbol_headphones_filed_24" android:left="8dp" android:right="20dp" android:top="14dp" />
|
||||
<item android:bottom="20dp" android:drawable="@drawable/symbol_dropdown_triangle_compat_bold_16" android:left="36dp" android:right="4dp" android:top="20dp" />
|
||||
</layer-list>
|
||||
</item>
|
||||
<item app:state_speaker_selected="true">
|
||||
<layer-list>
|
||||
<item android:drawable="@drawable/webrtc_call_screen_circle_checked" />
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
<item android:bottom="21.14dp" android:drawable="@drawable/symbol_dropdown_triangle_compat_bold_16" android:left="34.86dp" android:right="7.43dp" android:top="21.14dp" />
|
||||
</layer-list>
|
||||
</item>
|
||||
<item app:state_headset_selected="true">
|
||||
<item app:state_bt_headset_selected="true">
|
||||
<layer-list>
|
||||
<item
|
||||
android:bottom="4dp"
|
||||
@@ -46,6 +46,18 @@
|
||||
<item android:bottom="21.14dp" android:drawable="@drawable/symbol_dropdown_triangle_compat_bold_16" android:left="34.86dp" android:right="7.43dp" android:top="21.14dp" />
|
||||
</layer-list>
|
||||
</item>
|
||||
<item app:state_wired_headset_selected="true">
|
||||
<layer-list>
|
||||
<item
|
||||
android:bottom="4dp"
|
||||
android:top="4dp"
|
||||
android:left="4dp"
|
||||
android:right="4dp"
|
||||
android:drawable="@drawable/webrtc_call_screen_circle_checked" />
|
||||
<item android:bottom="16dp" android:drawable="@drawable/symbol_headphones_filed_24" android:left="10.86dp" android:right="21.14dp" android:top="16dp" />
|
||||
<item android:bottom="21.14dp" android:drawable="@drawable/symbol_dropdown_triangle_compat_bold_16" android:left="34.86dp" android:right="7.43dp" android:top="21.14dp" />
|
||||
</layer-list>
|
||||
</item>
|
||||
<item app:state_speaker_selected="true">
|
||||
<layer-list>
|
||||
<item
|
||||
|
||||
Reference in New Issue
Block a user