1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-12-24 17:45:50 +01:00

Sony Headphones: Add button modes help

This commit is contained in:
José Rebelo 2023-04-09 16:25:33 +01:00
parent c21d53ab49
commit da72dd0208
4 changed files with 98 additions and 0 deletions

View File

@ -0,0 +1,11 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:autoMirrored="true"
android:tint="#7E7E7E"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:fillColor="@android:color/white"
android:pathData="M11,18h2v-2h-2v2zM12,2C6.48,2 2,6.48 2,12s4.48,10 10,10 10,-4.48 10,-10S17.52,2 12,2zM12,20c-4.41,0 -8,-3.59 -8,-8s3.59,-8 8,-8 8,3.59 8,8 -3.59,8 -8,8zM12,6c-2.21,0 -4,1.79 -4,4h2c0,-1.1 0.9,-2 2,-2s2,0.9 2,2c0,2 -3,1.75 -3,5h2c0,-2.25 3,-2.5 3,-5 0,-2.21 -1.79,-4 -4,-4z" />
</vector>

View File

@ -0,0 +1,11 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:tint="#7E7E7E"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:fillColor="@android:color/white"
android:fillType="evenOdd"
android:pathData="M4,11h16v2h-16z" />
</vector>

View File

@ -1827,6 +1827,7 @@
<string name="pref_switch_controls_anc_ambient">Noise cancelling ←→ Ambient</string>
<string name="pref_switch_controls_anc_off">Noise cancelling ←→ Off</string>
<string name="pref_switch_controls_ambient_off">Ambient ←→ Off</string>
<string name="pref_switch_controls_anc_ambient_off">Noise cancelling ←→ Ambient ←→ Off</string>
<string name="prefs_noise_control">Noise control</string>
<string name="prefs_voice_detect">Voice detect</string>
<string name="prefs_voice_detect_summary">Enable Ambient sound and lower playback automatically after voice has been detected</string>
@ -1926,6 +1927,8 @@
<string name="sony_button_mode_left">Button Mode (Left)</string>
<string name="sony_button_mode_right">Button Mode (Right)</string>
<string name="sony_button_mode_off">Off</string>
<string name="sony_button_mode_help_title">Button Modes - Help</string>
<string name="sony_button_mode_help_summary">A description of each button mode</string>
<string name="sony_button_mode_ambient_sound_control">Ambient Sound Control</string>
<string name="sony_button_mode_playback_control">Playback Control</string>
<string name="sony_button_mode_volume_control">Volume Control</string>
@ -1939,6 +1942,12 @@
<string name="pref_screen_auto_brightness_title">Auto Brightness</string>
<string name="pref_screen_auto_brightness_summary">Adjust screen brightness according to ambient light</string>
<string name="pref_screen_brightness">Screen Brightness</string>
<string name="single_tap">Single Tap</string>
<string name="double_tap">Double Tap</string>
<string name="triple_tap">Triple Tap</string>
<string name="long_press">Long Press</string>
<string name="continue_pressing">Continue Pressing</string>
<string name="quick_attention">Quick Attention</string>
<string name="watchface_widget_type_custom">Custom widget</string>
<string name="watchface_dialog_widget_timezone">Time zone</string>
<string name="watchface_dialog_widget_timezone_duration">Clock visibility duration (in seconds)</string>

View File

@ -1,5 +1,72 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.preference.PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
<PreferenceScreen
android:icon="@drawable/ic_help_outline"
android:key="pref_screen_sony_button_mode_help"
android:persistent="false"
android:summary="@string/sony_button_mode_help_summary"
android:title="@string/sony_button_mode_help_title">
<PreferenceCategory android:title="@string/sony_button_mode_ambient_sound_control">
<Preference
android:icon="@drawable/ic_filter_1"
android:key="pref_button_mode_help_ambient_sound_single_tap"
android:summary="@string/pref_switch_controls_anc_ambient_off"
android:title="@string/single_tap" />
<Preference
android:icon="@drawable/ic_horizontal_rule"
android:key="pref_button_mode_help_ambient_sound_continue_pressing"
android:summary="@string/quick_attention"
android:title="@string/continue_pressing" />
</PreferenceCategory>
<PreferenceCategory android:title="@string/sony_button_mode_playback_control">
<Preference
android:icon="@drawable/ic_filter_1"
android:key="pref_button_mode_help_playback_control_single_tap"
android:summary="@string/pref_media_playpause"
android:title="@string/single_tap" />
<Preference
android:icon="@drawable/ic_filter_2"
android:key="pref_button_mode_help_playback_control_double_tap"
android:summary="@string/pref_media_next"
android:title="@string/double_tap" />
<Preference
android:icon="@drawable/ic_filter_3"
android:key="pref_button_mode_help_playback_control_triple_tap"
android:summary="@string/pref_media_previous"
android:title="@string/triple_tap" />
<Preference
android:icon="@drawable/ic_horizontal_rule"
android:key="pref_button_mode_help_playback_control_long_press"
android:summary="@string/pref_title_touch_voice_assistant"
android:title="@string/long_press" />
</PreferenceCategory>
<PreferenceCategory android:title="@string/sony_button_mode_volume_control">
<Preference
android:icon="@drawable/ic_filter_1"
android:key="pref_button_mode_help_volume_control_single_tap"
android:summary="@string/pref_media_volumeup"
android:title="@string/single_tap" />
<Preference
android:icon="@drawable/ic_horizontal_rule"
android:key="pref_button_mode_help_volume_control_continue_pressing"
android:summary="@string/pref_media_volumedown"
android:title="@string/continue_pressing" />
</PreferenceCategory>
<!--
Google Assistant:
- Tap: Cancel Audio Input
- Double Tap: Voice Notification
- Continue Pressing: Audio Input
Amazon Alexa
- Tap: Audio Input / Cancel
-->
</PreferenceScreen>
<ListPreference
android:defaultValue="off"
android:entries="@array/sony_wfsp800n_button_mode_names"