Skip to content

Commit

Permalink
Merge pull request NightscoutFoundation#3027 from Navid200/Navid_2023…
Browse files Browse the repository at this point in the history
…_08_17

Remove the fallback setting
  • Loading branch information
jamorham authored Sep 8, 2023
2 parents 59055a8 + d97e3e3 commit 1fee98b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ public static void migrateOOP2CalibrationPreferences() {
// Force legacy settings to be at their recommended values
private static void legacySettingsFix() {
Pref.setBoolean("use_ob1_g5_collector_service", true);
Pref.setBoolean("ob1_g5_fallback_to_xdrip", false);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -2456,6 +2456,7 @@ public void run() {

private void removeLegacyPreferences() {
// removePreferenceFromCategory("use_ob1_g5_collector_service", "ob1_options");
// removePreferenceFromCategory("ob1_g5_fallback_to_xdrip", "ob1_options");
}

private void removePreferenceFromCategory(final String preference, final String category) {
Expand Down
6 changes: 0 additions & 6 deletions app/src/main/res/xml/pref_data_source.xml
Original file line number Diff line number Diff line change
Expand Up @@ -344,12 +344,6 @@
android:key="ob1_g5_use_insufficiently_calibrated"
android:summary="@string/summary_ob1_g5_use_insufficiently_calibrated"
android:title="@string/title_ob1_g5_use_insufficiently_calibrated" />
<CheckBoxPreference
android:defaultValue="false"
android:dependency="ob1_g5_use_transmitter_alg"
android:key="ob1_g5_fallback_to_xdrip"
android:summary="@string/summary_ob1_g5_fallback_to_xdrip"
android:title="@string/title_ob1_g5_fallback_to_xdrip" />
<CheckBoxPreference
android:defaultValue="false"
android:key="ob1_minimize_scanning"
Expand Down

0 comments on commit 1fee98b

Please sign in to comment.