Skip to content

Commit

Permalink
Processing: add graph smoothing preference option
Browse files Browse the repository at this point in the history
  • Loading branch information
jamorham committed Aug 1, 2022
1 parent 891ffce commit 1f65489
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1710,4 +1710,8 @@
<string name="please_wait_seconds_before_trying_to_start_sensor">Please wait %d seconds before trying to start sensor</string>
<string name="please_update_OOP2_or_move_to_calibrate_based_on_raw_mode">please update OOP2 or move to calibrate based on raw mode</string>
<string name="special_pairing_workaround">Special Pairing Workaround</string>
<string name="save_power">Save Power</string>
<string name="reduce_battery_and_network_overhead">Reduce battery and network overhead by using batch processing and excluding unnecessary data</string>
<string name="simplify_graphs_by_smoothing_out_irregularities">Simplify graphs by smoothing out irregularities</string>
<string name="graph_smoothing">Graph Smoothing</string>
</resources>
13 changes: 13 additions & 0 deletions app/src/main/res/xml/xdrip_plus_prefs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,14 @@
android:summary="@string/summary_xdrip_plus_graph_display_settings"
android:title="@string/title_xdrip_plus_graph_display_settings">

<SwitchPreference
android:defaultValue="false"
android:key="graph_smoothing"
android:summary="@string/simplify_graphs_by_smoothing_out_irregularities"
android:switchTextOff="@string/short_off_text_for_switches"
android:switchTextOn="@string/short_on_text_for_switches"
android:title="@string/graph_smoothing" />

<CheckBoxPreference
android:defaultValue="false"
android:key="rewrite_history"
Expand Down Expand Up @@ -795,6 +803,11 @@
android:key="plus_accept_follower_actions"
android:summary="@string/summary_plus_accept_follower_actions"
android:title="@string/title_plus_accept_follower_actions" />
<CheckBoxPreference
android:defaultValue="false"
android:key="plus_follower_save_power"
android:summary="@string/reduce_battery_and_network_overhead"
android:title="@string/save_power" />
<SwitchPreference
android:defaultValue="false"
android:dependency="plus_follow_master"
Expand Down

0 comments on commit 1f65489

Please sign in to comment.