mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-07-10 07:31:34 +02:00
This PR aims to add support for the newer Fossil Gen. 6 Hybrid models, which are pretty similar to the older HR's. Here's my checklist - [x] make GB recognize and accept new watches - [ ] find out how SPO2 is transmitted - [ ] extend activity data to include Oxygen data - [x] create timeout for requests to avoid deadlocks - [x] fix device vibration on every reconnect - [ ] create API for voice commands - [x] figure out how the voice data works Co-authored-by: Daniel Dakhno <dakhnod@gmail.com> Reviewed-on: https://codeberg.org/Freeyourgadget/Gadgetbridge/pulls/2775 Co-authored-by: dakhnod <dakhnod@noreply.codeberg.org> Co-committed-by: dakhnod <dakhnod@noreply.codeberg.org>
165 lines
7.4 KiB
XML
165 lines
7.4 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<androidx.preference.PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto">
|
|
|
|
<PreferenceScreen
|
|
android:key="button_configuration"
|
|
android:icon="@drawable/ic_smart_button"
|
|
android:title="@string/pref_title_physical_buttons"
|
|
android:summary="@string/pref_summary_physical_buttons">
|
|
<ListPreference
|
|
android:defaultValue="weatherApp"
|
|
android:entries="@array/pref_hybridhr_buttonfunctions"
|
|
android:entryValues="@array/pref_hybridhr_buttonfunctions_values"
|
|
android:key="button_1_function_short"
|
|
android:summary="%s"
|
|
android:title="@string/pref_title_upper_button_function_short" />
|
|
<ListPreference
|
|
android:defaultValue="weatherApp"
|
|
android:entries="@array/pref_hybridhr_buttonfunctions"
|
|
android:entryValues="@array/pref_hybridhr_buttonfunctions_values"
|
|
android:key="button_1_function_long"
|
|
android:summary="%s"
|
|
android:title="@string/pref_title_upper_button_function_long" />
|
|
<ListPreference
|
|
android:defaultValue="commuteApp"
|
|
android:entries="@array/pref_hybridhr_buttonfunctions"
|
|
android:entryValues="@array/pref_hybridhr_buttonfunctions_values"
|
|
android:key="button_2_function_short"
|
|
android:summary="%s"
|
|
android:title="@string/pref_title_middle_button_function_short" />
|
|
<Preference
|
|
android:selectable="false"
|
|
android:persistent="false"
|
|
android:key="button_2_function_long"
|
|
android:summary="@string/menuitem_menu"
|
|
android:title="@string/pref_title_middle_button_function_long" />
|
|
<ListPreference
|
|
android:defaultValue="musicApp"
|
|
android:entries="@array/pref_hybridhr_buttonfunctions"
|
|
android:entryValues="@array/pref_hybridhr_buttonfunctions_values"
|
|
android:key="button_3_function_short"
|
|
android:summary="%s"
|
|
android:title="@string/pref_title_lower_button_function_short" />
|
|
<ListPreference
|
|
android:defaultValue="musicApp"
|
|
android:entries="@array/pref_hybridhr_buttonfunctions"
|
|
android:entryValues="@array/pref_hybridhr_buttonfunctions_values"
|
|
android:key="button_3_function_long"
|
|
android:summary="%s"
|
|
android:title="@string/pref_title_lower_button_function_long" />
|
|
<Preference
|
|
android:selectable="false"
|
|
android:persistent="false"
|
|
android:key="button_1_function_long_warning"
|
|
android:summary="@string/fossil_hr_button_config_info" />
|
|
</PreferenceScreen>
|
|
|
|
<PreferenceScreen
|
|
android:icon="@drawable/ic_activity_unknown_small"
|
|
android:title="@string/prefs_activity_recognition"
|
|
android:key="activity_recognition_settings">
|
|
|
|
<ListPreference
|
|
android:key="activity_recognize_running"
|
|
android:title="@string/pref_activity_recognize_running"
|
|
android:icon="@drawable/ic_activity_running"
|
|
android:entryValues="@array/fossil_hr_activity_recognition_mode_values"
|
|
android:entries="@array/fossil_hr_activity_recognition_modes"/>
|
|
|
|
<ListPreference
|
|
android:key="activity_recognize_biking"
|
|
android:title="@string/pref_activity_recognize_biking"
|
|
android:icon="@drawable/ic_activity_biking"
|
|
android:entryValues="@array/fossil_hr_activity_recognition_mode_values"
|
|
android:entries="@array/fossil_hr_activity_recognition_modes"/>
|
|
|
|
<ListPreference
|
|
android:key="activity_recognize_walking"
|
|
android:title="@string/pref_activity_recognize_walking"
|
|
android:icon="@drawable/ic_activity_walking"
|
|
android:entryValues="@array/fossil_hr_activity_recognition_mode_values"
|
|
android:entries="@array/fossil_hr_activity_recognition_modes"/>
|
|
|
|
<ListPreference
|
|
android:key="activity_recognize_rowing"
|
|
android:title="@string/pref_activity_recognize_rowing"
|
|
android:icon="@drawable/ic_activity_rowing"
|
|
android:entryValues="@array/fossil_hr_activity_recognition_mode_values"
|
|
android:entries="@array/fossil_hr_activity_recognition_modes"/>
|
|
|
|
</PreferenceScreen>
|
|
|
|
<Preference
|
|
android:title="@string/qhybrid_pref_title_actions"
|
|
android:icon="@drawable/ic_pending_actions"
|
|
android:summary="@string/qhybrid_pref_summary_actions">
|
|
<intent
|
|
android:targetPackage="nodomain.freeyourgadget.gadgetbridge"
|
|
android:targetClass="nodomain.freeyourgadget.gadgetbridge.devices.qhybrid.CommuteActionsActivity" />
|
|
</Preference>
|
|
|
|
<SeekBarPreference
|
|
android:defaultValue="2"
|
|
android:icon="@drawable/ic_vibration"
|
|
android:key="vibration_strength"
|
|
android:max="3"
|
|
android:title="@string/pref_title_vibration_strength"
|
|
app:showSeekBarValue="true" />
|
|
|
|
<Preference
|
|
android:title="@string/qhybrid_title_calibration"
|
|
android:icon="@drawable/ic_sensor_calibration"
|
|
android:summary="@string/qhybrid_summary_calibration">
|
|
<intent
|
|
android:targetPackage="nodomain.freeyourgadget.gadgetbridge"
|
|
android:targetClass="nodomain.freeyourgadget.gadgetbridge.devices.qhybrid.CalibrationActivity" />
|
|
</Preference>
|
|
|
|
<PreferenceScreen
|
|
android:key="developer_settings"
|
|
android:icon="@drawable/ic_developer_mode"
|
|
android:title="@string/pref_title_developer_settings"
|
|
android:summary="@string/pref_summary_developer_settings">
|
|
|
|
<SwitchPreference
|
|
android:defaultValue="false"
|
|
android:key="save_raw_activity_files"
|
|
android:title="@string/pref_qhybrid_save_raw_activity_files" />
|
|
|
|
<SwitchPreference
|
|
android:defaultValue="false"
|
|
android:key="dangerous_external_intents"
|
|
android:title="@string/qhybrid_pref_title_external_intents"
|
|
android:summary="@string/qhybrid_pref_summary_external_intents" />
|
|
|
|
<Preference
|
|
android:title="@string/qhybrid_title_file_management"
|
|
android:summary="@string/qhybrid_summary_file_management">
|
|
<intent
|
|
android:targetPackage="nodomain.freeyourgadget.gadgetbridge"
|
|
android:targetClass="nodomain.freeyourgadget.gadgetbridge.devices.qhybrid.FileManagementActivity" />
|
|
</Preference>
|
|
|
|
<SwitchPreference
|
|
android:defaultValue="true"
|
|
android:key="enable_on_device_confirmation"
|
|
android:title="@string/qhybrid_title_on_device_confirmation"
|
|
android:summary="@string/qhybrid_summary_on_device_confirmation" />
|
|
|
|
<EditTextPreference
|
|
android:key="voice_service_package"
|
|
android:title="Voice service package"
|
|
android:summary="Application that contains the service handling voice commands"
|
|
app:useSimpleSummaryProvider="true"/>
|
|
|
|
<EditTextPreference
|
|
android:key="voice_service_class"
|
|
android:title="Voice service full path"
|
|
android:summary="Full service path handling voice commands"
|
|
app:useSimpleSummaryProvider="true" />
|
|
|
|
</PreferenceScreen>
|
|
|
|
</androidx.preference.PreferenceScreen>
|