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">
|
2023-10-06 22:06:35 +02:00
|
|
|
<SwitchPreferenceCompat
|
2023-02-04 11:55:56 +01:00
|
|
|
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"/>
|
2023-10-06 22:06:35 +02:00
|
|
|
<SwitchPreferenceCompat
|
2023-02-04 11:55:56 +01:00
|
|
|
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">
|
2023-10-06 22:06:35 +02:00
|
|
|
<SwitchPreferenceCompat
|
2023-02-04 11:55:56 +01:00
|
|
|
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"/>
|
2023-10-06 22:06:35 +02:00
|
|
|
<SwitchPreferenceCompat
|
2023-02-04 11:55:56 +01:00
|
|
|
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">
|
2023-10-06 22:06:35 +02:00
|
|
|
<SwitchPreferenceCompat
|
2023-02-04 11:55:56 +01:00
|
|
|
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"/>
|
2023-10-06 22:06:35 +02:00
|
|
|
<SwitchPreferenceCompat
|
2023-02-04 11:55:56 +01:00
|
|
|
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">
|
2023-10-06 22:06:35 +02:00
|
|
|
<SwitchPreferenceCompat
|
2023-02-04 11:55:56 +01:00
|
|
|
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"/>
|
2023-10-06 22:06:35 +02:00
|
|
|
<SwitchPreferenceCompat
|
2023-02-04 11:55:56 +01:00
|
|
|
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>
|
|
|
|
|
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
|
|
|
|
2020-02-27 13:36:53 +01:00
|
|
|
</androidx.preference.PreferenceScreen>
|