Skip to content

Commit

Permalink
Merge pull request #3763 from Navid200/Navid_2024_11_08
Browse files Browse the repository at this point in the history
SwitchPreference switchTextOff and On
  • Loading branch information
jamorham authored Nov 15, 2024
2 parents eb920d2 + ef6ba70 commit 71cb6c7
Show file tree
Hide file tree
Showing 4 changed files with 82 additions and 0 deletions.
50 changes: 50 additions & 0 deletions app/src/main/res/xml/pref_advanced_settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@
android:dependency="force_wearG5"
android:key="disable_wearG5_on_missedreadings"
android:summary="@string/pref_summary_disable_wearG5_on_missedreadings"
android:switchTextOff="@string/short_off_text_for_switches"
android:switchTextOn="@string/short_on_text_for_switches"
android:title="@string/pref_disable_wearG5_on_missedreadings" />
<EditTextPreference
android:defaultValue="30"
Expand Down Expand Up @@ -330,6 +332,8 @@
android:dependency="bluejay_enabled"
android:key="bluejay_send_alarms"
android:summary="Send xDrip generated alarms to the watch"
android:switchTextOff="@string/short_off_text_for_switches"
android:switchTextOn="@string/short_on_text_for_switches"
android:title="Send Alarms" />
<CheckBoxPreference
android:defaultValue="false"
Expand Down Expand Up @@ -366,6 +370,8 @@
android:dependency="bluejay_enabled"
android:key="bluejay_use_motion_wake"
android:summary="Use a shake of the wrist to wake BlueJay. Adjust sensitivity below."
android:switchTextOff="@string/short_off_text_for_switches"
android:switchTextOn="@string/short_on_text_for_switches"
android:title="Wake with motion" />

<SeekBarPreference
Expand Down Expand Up @@ -505,6 +511,8 @@
android:dependency="lefun_enabled"
android:key="lefun_send_alarms"
android:summary="@string/summary_lefun_send_alarms"
android:switchTextOff="@string/short_off_text_for_switches"
android:switchTextOn="@string/short_on_text_for_switches"
android:title="@string/title_lefun_send_alarms" />
<CheckBoxPreference
android:defaultValue="true"
Expand Down Expand Up @@ -568,6 +576,8 @@
android:defaultValue="false"
android:key="miband_enabled"
android:summary="@string/summary_miband_enable"
android:switchTextOff="@string/short_off_text_for_switches"
android:switchTextOn="@string/short_on_text_for_switches"
android:title="@string/title_miband_enable" />
<EditTextPreference
android:key="miband_data_mac"
Expand All @@ -584,23 +594,31 @@
android:dependency="miband_enabled"
android:key="miband_send_readings"
android:summary="@string/summary_lefun_send_readings"
android:switchTextOff="@string/short_off_text_for_switches"
android:switchTextOn="@string/short_on_text_for_switches"
android:title="@string/title_lefun_send_readings" />
<SwitchPreference
android:defaultValue="true"
android:dependency="miband_send_readings"
android:key="miband_send_readings_as_notification"
android:summary="@string/summary_miband_send_readings_as_notification"
android:switchTextOff="@string/short_off_text_for_switches"
android:switchTextOn="@string/short_on_text_for_switches"
android:title="@string/title_miband_send_readings_as_notification" />
<SwitchPreference
android:defaultValue="true"
android:dependency="miband_send_readings"
android:key="miband_vibrate_on_readings"
android:switchTextOff="@string/short_off_text_for_switches"
android:switchTextOn="@string/short_on_text_for_switches"
android:title="@string/title_miband_vibrate_on_readings" />
<SwitchPreference
android:defaultValue="true"
android:dependency="miband_enabled"
android:key="miband_send_alarms"
android:summary="@string/summary_lefun_send_alarms"
android:switchTextOff="@string/short_off_text_for_switches"
android:switchTextOn="@string/short_on_text_for_switches"
android:title="@string/title_lefun_send_alarms" />
<CheckBoxPreference
android:defaultValue="false"
Expand Down Expand Up @@ -645,10 +663,14 @@
<SwitchPreference
android:defaultValue="true"
android:key="miband_feature_lift_to_wake"
android:switchTextOff="@string/short_off_text_for_switches"
android:switchTextOn="@string/short_on_text_for_switches"
android:title="@string/title_lefun_feature_lift_to_wak" />
<SwitchPreference
android:defaultValue="true"
android:key="miband_feature_switch_display_on_wrist"
android:switchTextOff="@string/short_off_text_for_switches"
android:switchTextOn="@string/short_on_text_for_switches"
android:title="@string/title_miband_switch_display_on_wrist" />
<SwitchPreference
android:defaultValue="true"
Expand All @@ -661,23 +683,33 @@
android:defaultValue="true"
android:key="miband_feature_goal_notification"
android:summary="@string/summary_miband_goal_notification"
android:switchTextOff="@string/short_off_text_for_switches"
android:switchTextOn="@string/short_on_text_for_switches"
android:title="@string/title_miband_goal_notification" />
<SwitchPreference
android:key="miband_feature_anti_lost"
android:switchTextOff="@string/short_off_text_for_switches"
android:switchTextOn="@string/short_on_text_for_switches"
android:title="@string/title_lefun_feature_anti_lost" />
<SwitchPreference
android:defaultValue="true"
android:key="miband_feature_locale_24_hour"
android:summary="@string/summary_miband_locale_24_hour"
android:switchTextOff="@string/short_off_text_for_switches"
android:switchTextOn="@string/short_on_text_for_switches"
android:title="@string/title_miband_locale_24_hour" />
<SwitchPreference
android:defaultValue="true"
android:key="miband_feature_show_date"
android:switchTextOff="@string/short_off_text_for_switches"
android:switchTextOn="@string/short_on_text_for_switches"
android:title="@string/title_miband_show_date" />
<SwitchPreference
android:defaultValue="true"
android:key="miband_feature_visibility"
android:summary="@string/summary_miband_visibility"
android:switchTextOff="@string/short_off_text_for_switches"
android:switchTextOn="@string/short_on_text_for_switches"
android:title="@string/title_miband_visibility" />
</PreferenceCategory>
<PreferenceCategory
Expand All @@ -687,6 +719,8 @@
android:defaultValue="false"
android:key="miband_nightmode_enabled"
android:summary="@string/summary_miband_nightmode_enabled"
android:switchTextOff="@string/short_off_text_for_switches"
android:switchTextOn="@string/short_on_text_for_switches"
android:title="@string/title_miband_nightmode_enabled" />
<com.eveningoutpost.dexdrip.utils.TimePreference
android:key="miband_nightmode_start"
Expand Down Expand Up @@ -1030,16 +1064,22 @@
android:key="health_connect_enable"
android:title="@string/use_health_connect"
android:summary="@string/requires_android_8_and_google_companion_application_or_android_14"
android:switchTextOff="@string/short_off_text_for_switches"
android:switchTextOn="@string/short_on_text_for_switches"
/>
<SwitchPreference
android:key="health_connect_receive"
android:defaultValue="true"
android:summary="@string/get_data_from_health_connect"
android:switchTextOff="@string/short_off_text_for_switches"
android:switchTextOn="@string/short_on_text_for_switches"
android:dependency="health_connect_enable"
/>
<SwitchPreference
android:key="health_connect_send"
android:summary="@string/send_data_to_health_connect"
android:switchTextOff="@string/short_off_text_for_switches"
android:switchTextOn="@string/short_on_text_for_switches"
android:dependency="health_connect_enable"
/>
<Preference
Expand Down Expand Up @@ -1379,6 +1419,8 @@
android:defaultValue="false"
android:key="blueReader_turn_off"
android:summary="@string/bluereader_turnoff_sum"
android:switchTextOff="@string/short_off_text_for_switches"
android:switchTextOn="@string/short_on_text_for_switches"
android:title="@string/bluereader_turnoff" />
<SeekBarPreference
android:defaultValue="5"
Expand All @@ -1392,11 +1434,15 @@
android:defaultValue="false"
android:key="blueReader_suppressuglystatemsg"
android:summary="@string/summary_Suppress_the_ugly_state_message_if_Problem_appears"
android:switchTextOff="@string/short_off_text_for_switches"
android:switchTextOn="@string/short_on_text_for_switches"
android:title="@string/title_supress_ugly_state_message" />
<SwitchPreference
android:defaultValue="false"
android:key="blueReader_writebatterylog"
android:summary="@string/summary_write_Battery_Information_for_additional_analytic"
android:switchTextOff="@string/short_off_text_for_switches"
android:switchTextOn="@string/short_on_text_for_switches"
android:title="@string/title_Batterylog" />
</PreferenceScreen>

Expand All @@ -1407,11 +1453,15 @@
android:defaultValue="false"
android:key="Libre2_showRawGraph"
android:summary="@string/summary_Lib2_show_raw_values"
android:switchTextOff="@string/short_off_text_for_switches"
android:switchTextOn="@string/short_on_text_for_switches"
android:title="@string/title_Lib2_show_raw_values" />
<SwitchPreference
android:defaultValue="false"
android:key="Libre2_showSensors"
android:summary="@string/summary_Lib2_show_sense_on_status"
android:switchTextOff="@string/short_off_text_for_switches"
android:switchTextOn="@string/short_on_text_for_switches"
android:title="@string/title_Lib2_show_sense_on_status" />
</PreferenceScreen>

Expand Down
4 changes: 4 additions & 0 deletions app/src/main/res/xml/pref_data_source.xml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@
android:defaultValue="false"
android:key="use_nfc_scan"
android:summary="@string/allow_sensor_scanning"
android:switchTextOff="@string/short_off_text_for_switches"
android:switchTextOn="@string/short_on_text_for_switches"
android:title="@string/use_nfc_feature" />
<ListPreference
android:defaultValue="enable_streaming_ask"
Expand Down Expand Up @@ -205,6 +207,8 @@
android:dependency="nsfollow_download_treatments"
android:key="cloud_storage_api_skip_download_from_xdrip"
android:summary="@string/summary_cloud_storage_api_download_from_xdrip"
android:switchTextOff="@string/short_off_text_for_switches"
android:switchTextOn="@string/short_on_text_for_switches"
android:title="@string/title_cloud_storage_api_download_from_xdrip" />
</PreferenceScreen>
<ListPreference
Expand Down
12 changes: 12 additions & 0 deletions app/src/main/res/xml/pref_data_sync.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@
android:disableDependentsState="false"
android:key="cloud_storage_api_enable"
android:summary="@string/pref_summary_api_enabled"
android:switchTextOff="@string/short_off_text_for_switches"
android:switchTextOn="@string/short_on_text_for_switches"
android:title="@string/pref_title_api_enabled" />
<CheckBoxPreference
android:defaultValue="true"
Expand All @@ -46,6 +48,8 @@
android:dependency="cloud_storage_api_enable"
android:key="cloud_storage_api_use_best_glucose"
android:summary="@string/use_plugins_for_brodcast"
android:switchTextOff="@string/short_off_text_for_switches"
android:switchTextOn="@string/short_on_text_for_switches"
android:title="@string/send_display_glucose" />
<EditTextPreference
android:defaultValue="@string/pref_default_api_url"
Expand All @@ -65,12 +69,16 @@
android:dependency="cloud_storage_api_enable"
android:key="cloud_storage_api_download_enable"
android:summary="@string/summary_cloud_storage_api_download_enable"
android:switchTextOff="@string/short_off_text_for_switches"
android:switchTextOn="@string/short_on_text_for_switches"
android:title="@string/title_cloud_storage_api_download_enable" />
<SwitchPreference
android:defaultValue="true"
android:dependency="cloud_storage_api_download_enable"
android:key="cloud_storage_api_skip_download_from_xdrip"
android:summary="@string/summary_cloud_storage_api_download_from_xdrip"
android:switchTextOff="@string/short_off_text_for_switches"
android:switchTextOn="@string/short_on_text_for_switches"
android:title="@string/title_cloud_storage_api_download_from_xdrip" />
</PreferenceScreen>
<CheckBoxPreference
Expand Down Expand Up @@ -132,6 +140,8 @@
<SwitchPreference
android:defaultValue="false"
android:key="cloud_storage_mongodb_enable"
android:switchTextOff="@string/short_off_text_for_switches"
android:switchTextOn="@string/short_on_text_for_switches"
android:title="@string/enable_mongo_sync" />
<EditTextPreference
android:defaultValue="@string/pref_default_mongodb_uri"
Expand Down Expand Up @@ -178,6 +188,8 @@
<SwitchPreference
android:defaultValue="false"
android:key="cloud_storage_influxdb_enable"
android:switchTextOff="@string/short_off_text_for_switches"
android:switchTextOn="@string/short_on_text_for_switches"
android:title="@string/influxdb_sync" />
<EditTextPreference
android:defaultValue="@string/pref_default_influxdb_uri"
Expand Down
Loading

0 comments on commit 71cb6c7

Please sign in to comment.