Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Retire old G5 settings #3530

Merged
merged 1 commit into from
Jun 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
14 changes: 0 additions & 14 deletions app/src/main/res/xml/pref_data_source.xml
Original file line number Diff line number Diff line change
Expand Up @@ -410,20 +410,6 @@
android:summary="@string/summary_dex_specified_slot"
android:title="@string/title_dex_specified_slot" />
</PreferenceCategory>
<PreferenceCategory
android:key="old_g5_options"
android:title="@string/title_old_g5_options">
<CheckBoxPreference
android:defaultValue="false"
android:key="run_ble_scan_constantly"
android:summary="@string/g5_scan_constantly"
android:title="@string/scan_for_g5_constantly" />
<CheckBoxPreference
android:defaultValue="false"
android:key="run_G5_ble_tasks_on_uithread"
android:summary="@string/g5_force_ui_thread"
android:title="@string/force_g5_ui_thread" />
</PreferenceCategory>
<PreferenceCategory
android:key="dex_battery_category"
android:title="@string/title_g5g6_battery_options">
Expand Down
Loading