2020-02-27 13:36:53 +01:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2020-03-20 17:14:00 +01:00
|
|
|
<androidx.preference.PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto">
|
2020-10-13 03:06:05 +02:00
|
|
|
|
2022-01-06 13:31:00 +01:00
|
|
|
<PreferenceScreen
|
|
|
|
android:icon="@drawable/ic_activity_unknown_small"
|
2023-02-04 11:55:56 +01:00
|
|
|
android:title="@string/pref_workout_detection_title"
|
|
|
|
android:summary="@string/pref_workout_detection_summary"
|
|
|
|
android:key="workout_detection_settings">
|
2022-01-06 13:31:00 +01:00
|
|
|
|
2023-02-04 11:55:56 +01:00
|
|
|
<PreferenceCategory
|
|
|
|
android:key="pref_workout_detection_running"
|
|
|
|
android:title="@string/activity_type_running">
|
|
|
|
<SwitchPreference
|
|
|
|
android:defaultValue="false"
|
|
|
|
android:key="activity_recognize_running_enabled"
|
|
|
|
android:title="@string/pref_workout_detection_enabled"
|
|
|
|
android:summary="@string/pref_workout_detection_summary"
|
|
|
|
android:icon="@drawable/ic_activity_running"/>
|
|
|
|
<SwitchPreference
|
|
|
|
android:defaultValue="false"
|
|
|
|
android:key="activity_recognize_running_ask_first"
|
|
|
|
android:title="@string/pref_workout_detection_ask_first"
|
|
|
|
android:summary="@string/pref_workout_detection_ask_first_summary"
|
|
|
|
android:icon="@drawable/ic_warning_gray"
|
|
|
|
android:dependency="activity_recognize_running_enabled"/>
|
|
|
|
<EditTextPreference
|
|
|
|
android:defaultValue="3"
|
|
|
|
android:inputType="number"
|
|
|
|
android:icon="@drawable/ic_timer"
|
|
|
|
android:key="activity_recognize_running_minutes"
|
|
|
|
android:title="@string/pref_workout_detection_time"
|
|
|
|
android:summary="@string/pref_workout_detection_time_summary"
|
|
|
|
android:dependency="activity_recognize_running_enabled"/>
|
|
|
|
</PreferenceCategory>
|
2022-01-06 13:31:00 +01:00
|
|
|
|
2023-02-04 11:55:56 +01:00
|
|
|
<PreferenceCategory
|
|
|
|
android:key="pref_workout_detection_biking"
|
|
|
|
android:title="@string/activity_type_biking">
|
|
|
|
<SwitchPreference
|
|
|
|
android:defaultValue="false"
|
|
|
|
android:key="activity_recognize_biking_enabled"
|
|
|
|
android:title="@string/pref_workout_detection_enabled"
|
|
|
|
android:summary="@string/pref_workout_detection_summary"
|
|
|
|
android:icon="@drawable/ic_activity_biking"/>
|
|
|
|
<SwitchPreference
|
|
|
|
android:defaultValue="false"
|
|
|
|
android:key="activity_recognize_biking_ask_first"
|
|
|
|
android:title="@string/pref_workout_detection_ask_first"
|
|
|
|
android:summary="@string/pref_workout_detection_ask_first_summary"
|
|
|
|
android:icon="@drawable/ic_warning_gray"
|
|
|
|
android:dependency="activity_recognize_biking_enabled"/>
|
|
|
|
<EditTextPreference
|
|
|
|
android:defaultValue="5"
|
|
|
|
android:inputType="number"
|
|
|
|
android:icon="@drawable/ic_timer"
|
|
|
|
android:key="activity_recognize_biking_minutes"
|
|
|
|
android:title="@string/pref_workout_detection_time"
|
|
|
|
android:summary="@string/pref_workout_detection_time_summary"
|
|
|
|
android:dependency="activity_recognize_biking_enabled"/>
|
|
|
|
</PreferenceCategory>
|
2022-01-06 13:31:00 +01:00
|
|
|
|
2023-02-04 11:55:56 +01:00
|
|
|
<PreferenceCategory
|
|
|
|
android:key="pref_workout_detection_walking"
|
|
|
|
android:title="@string/activity_type_walking">
|
|
|
|
<SwitchPreference
|
|
|
|
android:defaultValue="false"
|
|
|
|
android:key="activity_recognize_walking_enabled"
|
|
|
|
android:title="@string/pref_workout_detection_enabled"
|
|
|
|
android:summary="@string/pref_workout_detection_summary"
|
|
|
|
android:icon="@drawable/ic_activity_walking"/>
|
|
|
|
<SwitchPreference
|
|
|
|
android:defaultValue="false"
|
|
|
|
android:key="activity_recognize_walking_ask_first"
|
|
|
|
android:title="@string/pref_workout_detection_ask_first"
|
|
|
|
android:summary="@string/pref_workout_detection_ask_first_summary"
|
|
|
|
android:icon="@drawable/ic_warning_gray"
|
|
|
|
android:dependency="activity_recognize_walking_enabled"/>
|
|
|
|
<EditTextPreference
|
|
|
|
android:defaultValue="10"
|
|
|
|
android:inputType="number"
|
|
|
|
android:icon="@drawable/ic_timer"
|
|
|
|
android:key="activity_recognize_walking_minutes"
|
|
|
|
android:title="@string/pref_workout_detection_time"
|
|
|
|
android:summary="@string/pref_workout_detection_time_summary"
|
|
|
|
android:dependency="activity_recognize_walking_enabled"/>
|
|
|
|
</PreferenceCategory>
|
2022-01-06 13:31:00 +01:00
|
|
|
|
2023-02-04 11:55:56 +01:00
|
|
|
<PreferenceCategory
|
|
|
|
android:key="pref_workout_detection_rowing"
|
|
|
|
android:title="@string/activity_type_rowing">
|
|
|
|
<SwitchPreference
|
|
|
|
android:defaultValue="false"
|
|
|
|
android:key="activity_recognize_rowing_enabled"
|
|
|
|
android:title="@string/pref_workout_detection_enabled"
|
|
|
|
android:summary="@string/pref_workout_detection_summary"
|
|
|
|
android:icon="@drawable/ic_activity_rowing"/>
|
|
|
|
<SwitchPreference
|
|
|
|
android:defaultValue="false"
|
|
|
|
android:key="activity_recognize_rowing_ask_first"
|
|
|
|
android:title="@string/pref_workout_detection_ask_first"
|
|
|
|
android:summary="@string/pref_workout_detection_ask_first_summary"
|
|
|
|
android:icon="@drawable/ic_warning_gray"
|
|
|
|
android:dependency="activity_recognize_rowing_enabled"/>
|
|
|
|
<EditTextPreference
|
|
|
|
android:defaultValue="3"
|
|
|
|
android:inputType="number"
|
|
|
|
android:icon="@drawable/ic_timer"
|
|
|
|
android:key="activity_recognize_rowing_minutes"
|
|
|
|
android:title="@string/pref_workout_detection_time"
|
|
|
|
android:summary="@string/pref_workout_detection_time_summary"
|
|
|
|
android:dependency="activity_recognize_rowing_enabled"/>
|
|
|
|
</PreferenceCategory>
|
2022-01-06 13:31:00 +01:00
|
|
|
|
|
|
|
</PreferenceScreen>
|
|
|
|
|
2021-05-22 22:28:26 +02:00
|
|
|
<Preference
|
2021-05-31 10:16:33 +02:00
|
|
|
android:title="@string/qhybrid_pref_title_actions"
|
2021-07-06 09:24:12 +02:00
|
|
|
android:icon="@drawable/ic_pending_actions"
|
2021-05-31 10:16:33 +02:00
|
|
|
android:summary="@string/qhybrid_pref_summary_actions">
|
2021-05-22 22:28:26 +02:00
|
|
|
<intent
|
|
|
|
android:targetPackage="nodomain.freeyourgadget.gadgetbridge"
|
|
|
|
android:targetClass="nodomain.freeyourgadget.gadgetbridge.devices.qhybrid.CommuteActionsActivity" />
|
|
|
|
</Preference>
|
|
|
|
|
2020-03-20 17:14:00 +01:00
|
|
|
<SeekBarPreference
|
|
|
|
android:defaultValue="2"
|
2021-07-06 09:24:12 +02:00
|
|
|
android:icon="@drawable/ic_vibration"
|
2020-04-12 02:26:38 +02:00
|
|
|
android:key="vibration_strength"
|
2020-03-20 17:14:00 +01:00
|
|
|
android:max="3"
|
|
|
|
android:title="@string/pref_title_vibration_strength"
|
|
|
|
app:showSeekBarValue="true" />
|
|
|
|
|
2021-05-06 21:12:53 +02:00
|
|
|
<Preference
|
2021-06-01 09:53:34 +02:00
|
|
|
android:title="@string/qhybrid_title_calibration"
|
2021-07-06 09:24:12 +02:00
|
|
|
android:icon="@drawable/ic_sensor_calibration"
|
2021-06-01 09:53:34 +02:00
|
|
|
android:summary="@string/qhybrid_summary_calibration">
|
2021-05-06 21:12:53 +02:00
|
|
|
<intent
|
2023-05-24 18:08:22 +02:00
|
|
|
android:targetPackage="@string/applicationId"
|
2021-05-06 21:12:53 +02:00
|
|
|
android:targetClass="nodomain.freeyourgadget.gadgetbridge.devices.qhybrid.CalibrationActivity" />
|
|
|
|
</Preference>
|
2021-05-07 11:24:10 +02:00
|
|
|
|
2021-05-31 10:16:33 +02:00
|
|
|
<PreferenceScreen
|
|
|
|
android:key="developer_settings"
|
2021-07-06 09:24:12 +02:00
|
|
|
android:icon="@drawable/ic_developer_mode"
|
2021-05-31 10:16:33 +02:00
|
|
|
android:title="@string/pref_title_developer_settings"
|
|
|
|
android:summary="@string/pref_summary_developer_settings">
|
2021-05-07 11:24:10 +02:00
|
|
|
|
2021-05-31 10:16:33 +02:00
|
|
|
<SwitchPreference
|
|
|
|
android:defaultValue="false"
|
|
|
|
android:key="save_raw_activity_files"
|
2021-06-01 09:53:34 +02:00
|
|
|
android:title="@string/pref_qhybrid_save_raw_activity_files" />
|
2021-05-31 10:16:33 +02:00
|
|
|
|
|
|
|
<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>
|
|
|
|
|
2021-12-07 16:41:37 +01:00
|
|
|
<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" />
|
|
|
|
|
2022-08-24 21:56:09 +02:00
|
|
|
<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" />
|
|
|
|
|
2021-05-31 10:16:33 +02:00
|
|
|
</PreferenceScreen>
|
2021-05-06 21:12:53 +02:00
|
|
|
|
2020-02-27 13:36:53 +01:00
|
|
|
</androidx.preference.PreferenceScreen>
|