From f3707ddef096b186c666bb39600d8ccbcbe70ba7 Mon Sep 17 00:00:00 2001 From: Navid Date: Sun, 17 Sep 2023 10:10:32 -0400 Subject: [PATCH] Remove setting: Unbond G5 before each read --- .../dexdrip/utilitymodels/IdempotentMigrations.java | 1 + .../java/com/eveningoutpost/dexdrip/utils/Preferences.java | 1 + app/src/main/res/xml/pref_data_source.xml | 5 ----- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/com/eveningoutpost/dexdrip/utilitymodels/IdempotentMigrations.java b/app/src/main/java/com/eveningoutpost/dexdrip/utilitymodels/IdempotentMigrations.java index 713d86f0e5..06a65e6960 100644 --- a/app/src/main/java/com/eveningoutpost/dexdrip/utilitymodels/IdempotentMigrations.java +++ b/app/src/main/java/com/eveningoutpost/dexdrip/utilitymodels/IdempotentMigrations.java @@ -146,6 +146,7 @@ public static void migrateOOP2CalibrationPreferences() { private static void legacySettingsFix() { Pref.setBoolean("use_ob1_g5_collector_service", true); Pref.setBoolean("ob1_g5_fallback_to_xdrip", false); + Pref.setBoolean("always_unbond_G5", false); } } diff --git a/app/src/main/java/com/eveningoutpost/dexdrip/utils/Preferences.java b/app/src/main/java/com/eveningoutpost/dexdrip/utils/Preferences.java index 678d02933f..2f8ac81970 100644 --- a/app/src/main/java/com/eveningoutpost/dexdrip/utils/Preferences.java +++ b/app/src/main/java/com/eveningoutpost/dexdrip/utils/Preferences.java @@ -2457,6 +2457,7 @@ public void run() { private void removeLegacyPreferences() { // removePreferenceFromCategory("use_ob1_g5_collector_service", "ob1_options"); // removePreferenceFromCategory("ob1_g5_fallback_to_xdrip", "ob1_options"); + // removePreferenceFromCategory("always_unbond_G5", "ob1_options"); } private void removePreferenceFromCategory(final String preference, final String category) { diff --git a/app/src/main/res/xml/pref_data_source.xml b/app/src/main/res/xml/pref_data_source.xml index ef43b0ff5e..c67216fd6d 100644 --- a/app/src/main/res/xml/pref_data_source.xml +++ b/app/src/main/res/xml/pref_data_source.xml @@ -404,11 +404,6 @@ android:key="always_get_new_keys" android:summary="@string/g5_full_authentification" android:title="@string/authentificate_before_reading" /> -