Skip to content

Commit 42e420a

Browse files
authored
Merge pull request #3820 from Navid200/Navid_2024_12_17b
Retire sensor location setting
2 parents 75a5268 + bbf15f4 commit 42e420a

File tree

4 files changed

+4
-16
lines changed

4 files changed

+4
-16
lines changed

app/src/main/java/com/eveningoutpost/dexdrip/NewSensorLocation.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ public void onClick(View v) {
116116

117117
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getApplicationContext());
118118

119-
prefs.edit().putBoolean("store_sensor_location", !DontAskAgain.isChecked()).apply();
119+
// prefs.edit().putBoolean("store_sensor_location", !DontAskAgain.isChecked()).apply();
120120

121121
Intent intent = new Intent(getApplicationContext(), Home.class);
122122
startActivity(intent);
@@ -129,7 +129,7 @@ public void onClick(View v) {
129129

130130
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getApplicationContext());
131131

132-
prefs.edit().putBoolean("store_sensor_location", !DontAskAgain.isChecked()).apply();
132+
// prefs.edit().putBoolean("store_sensor_location", !DontAskAgain.isChecked()).apply();
133133

134134
Intent intent = new Intent(getApplicationContext(), Home.class);
135135
startActivity(intent);

app/src/main/java/com/eveningoutpost/dexdrip/StartNewSensor.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -224,11 +224,7 @@ private void startSensorAndSetIntent() {
224224
startSensorForTime(startTime);
225225

226226
Intent intent;
227-
if (Pref.getBoolean("store_sensor_location", false) && Experience.gotData()) {
228-
intent = new Intent(getApplicationContext(), NewSensorLocation.class);
229-
} else {
230-
intent = new Intent(getApplicationContext(), Home.class);
231-
}
227+
intent = new Intent(getApplicationContext(), Home.class);
232228

233229
startActivity(intent);
234230
finish();

app/src/main/java/com/eveningoutpost/dexdrip/utilitymodels/IdempotentMigrations.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ private static void legacySettingsFix() {
157157
Pref.setBoolean("run_ble_scan_constantly", false);
158158
Pref.setBoolean("run_G5_ble_tasks_on_uithread", false);
159159
Pref.setBoolean("ob1_initiate_bonding_flag", true);
160+
Pref.setBoolean("store_sensor_location", false);
160161
}
161162
private static void legacySettingsMoveLanguageFromNoToNb() {
162163
// Check if the user's language preference is set to "no"

app/src/main/res/xml/pref_advanced_settings.xml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1618,15 +1618,6 @@
16181618
android:title="@string/title_NOT_FOR_PRODUCTION_USE" />
16191619

16201620
</PreferenceScreen>
1621-
<PreferenceCategory
1622-
android:key="community_help_category"
1623-
android:title="@string/help_the_community">
1624-
<CheckBoxPreference
1625-
android:defaultValue="false"
1626-
android:key="store_sensor_location"
1627-
android:summary="@string/help_the_developers_improve_the_algorithm"
1628-
android:title="@string/store_sensor_location_to_help" />
1629-
</PreferenceCategory>
16301621
</PreferenceScreen>
16311622

16321623
</PreferenceCategory>

0 commit comments

Comments
 (0)