From 0ef8febc5d992228b6148887c13ab313f8a88b5f Mon Sep 17 00:00:00 2001 From: Navid Date: Wed, 12 Jun 2024 13:07:19 -0400 Subject: [PATCH] Retire old G5 settings --- .../utilitymodels/IdempotentMigrations.java | 2 ++ .../eveningoutpost/dexdrip/utils/Preferences.java | 2 ++ app/src/main/res/xml/pref_data_source.xml | 14 -------------- 3 files changed, 4 insertions(+), 14 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 9344057bce..a9803735e7 100644 --- a/app/src/main/java/com/eveningoutpost/dexdrip/utilitymodels/IdempotentMigrations.java +++ b/app/src/main/java/com/eveningoutpost/dexdrip/utilitymodels/IdempotentMigrations.java @@ -149,6 +149,8 @@ private static void legacySettingsFix() { Pref.setBoolean("ob1_g5_fallback_to_xdrip", false); Pref.setBoolean("always_unbond_G5", false); Pref.setBoolean("always_get_new_keys", true); + Pref.setBoolean("run_ble_scan_constantly", false); + Pref.setBoolean("run_G5_ble_tasks_on_uithread", false); } private static void legacySettingsMoveLanguageFromNoToNb() { // Check if the user's language preference is set to "no" 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 afbb490e9a..d4b586f51f 100644 --- a/app/src/main/java/com/eveningoutpost/dexdrip/utils/Preferences.java +++ b/app/src/main/java/com/eveningoutpost/dexdrip/utils/Preferences.java @@ -2522,6 +2522,8 @@ private void removeLegacyPreferences() { // removePreferenceFromCategory("ob1_g5_fallback_to_xdrip", "ob1_options"); // removePreferenceFromCategory("always_unbond_G5", "ob1_options"); // removePreferenceFromCategory("always_get_new_keys", "ob1_options"); + // removePreferenceFromCategory("run_ble_scan_constantly", "ob1_options"); + // removePreferenceFromCategory("run_G5_ble_tasks_on_uithread", "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 585fbd58ee..7041f6692d 100644 --- a/app/src/main/res/xml/pref_data_source.xml +++ b/app/src/main/res/xml/pref_data_source.xml @@ -410,20 +410,6 @@ android:summary="@string/summary_dex_specified_slot" android:title="@string/title_dex_specified_slot" /> - - - -