Skip to content

Commit

Permalink
Merge pull request #3437 from Navid200/Navid_2024_04_24
Browse files Browse the repository at this point in the history
Graph smoothing settings reorganization
  • Loading branch information
jamorham authored May 12, 2024
2 parents aaadf2d + c4002fb commit d693859
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 13 deletions.
3 changes: 2 additions & 1 deletion app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1773,8 +1773,9 @@
<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="simplify_graphs_by_smoothing_out_irregularities">Simplify graphs by smoothing out irregularities in the previous readings. The current reading, alerts and broadcast value are not affected by this setting. </string>
<string name="graph_smoothing">Graph Smoothing</string>
<string name="enable_graph_smoothing">Enable</string>
<string name="last_reading">Last Reading</string>
<string name="select_file_for_alert">Select File for Alert</string>
<string name="cannot_choose_file_without_permission">Cannot choose file without storage permission</string>
Expand Down
5 changes: 0 additions & 5 deletions app/src/main/res/xml/pref_advanced_settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1513,11 +1513,6 @@
android:key="predictive_bg"
android:summary="@string/predictive_readings_old"
android:title="@string/display_predictive_values" />
<CheckBoxPreference
android:defaultValue="false"
android:key="show-unsmoothed-values-as-plugin"
android:summary="@string/show_unsmoothed_summary"
android:title="@string/show_unsmoothed" />
<CheckBoxPreference
android:defaultValue="true"
android:dependency="engineering_mode"
Expand Down
22 changes: 15 additions & 7 deletions app/src/main/res/xml/xdrip_plus_prefs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -352,13 +352,21 @@
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" />
<PreferenceScreen
android:key="graph_smoothing_screen"
android:title="@string/graph_smoothing">
<CheckBoxPreference
android:defaultValue="false"
android:key="graph_smoothing"
android:summary="@string/simplify_graphs_by_smoothing_out_irregularities"
android:title="@string/enable_graph_smoothing" />
<CheckBoxPreference
android:defaultValue="false"
android:dependency="graph_smoothing"
android:key="show-unsmoothed-values-as-plugin"
android:summary="@string/show_unsmoothed_summary"
android:title="@string/show_unsmoothed" />
</PreferenceScreen>

<CheckBoxPreference
android:defaultValue="false"
Expand Down

0 comments on commit d693859

Please sign in to comment.