Skip to content

Commit

Permalink
Merge pull request #3820 from Navid200/Navid_2024_12_17b
Browse files Browse the repository at this point in the history
Retire sensor location setting
  • Loading branch information
jamorham authored Dec 31, 2024
2 parents 75a5268 + bbf15f4 commit 42e420a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ public void onClick(View v) {

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

prefs.edit().putBoolean("store_sensor_location", !DontAskAgain.isChecked()).apply();
// prefs.edit().putBoolean("store_sensor_location", !DontAskAgain.isChecked()).apply();

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

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

prefs.edit().putBoolean("store_sensor_location", !DontAskAgain.isChecked()).apply();
// prefs.edit().putBoolean("store_sensor_location", !DontAskAgain.isChecked()).apply();

Intent intent = new Intent(getApplicationContext(), Home.class);
startActivity(intent);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -224,11 +224,7 @@ private void startSensorAndSetIntent() {
startSensorForTime(startTime);

Intent intent;
if (Pref.getBoolean("store_sensor_location", false) && Experience.gotData()) {
intent = new Intent(getApplicationContext(), NewSensorLocation.class);
} else {
intent = new Intent(getApplicationContext(), Home.class);
}
intent = new Intent(getApplicationContext(), Home.class);

startActivity(intent);
finish();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ private static void legacySettingsFix() {
Pref.setBoolean("run_ble_scan_constantly", false);
Pref.setBoolean("run_G5_ble_tasks_on_uithread", false);
Pref.setBoolean("ob1_initiate_bonding_flag", true);
Pref.setBoolean("store_sensor_location", false);
}
private static void legacySettingsMoveLanguageFromNoToNb() {
// Check if the user's language preference is set to "no"
Expand Down
9 changes: 0 additions & 9 deletions app/src/main/res/xml/pref_advanced_settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1618,15 +1618,6 @@
android:title="@string/title_NOT_FOR_PRODUCTION_USE" />

</PreferenceScreen>
<PreferenceCategory
android:key="community_help_category"
android:title="@string/help_the_community">
<CheckBoxPreference
android:defaultValue="false"
android:key="store_sensor_location"
android:summary="@string/help_the_developers_improve_the_algorithm"
android:title="@string/store_sensor_location_to_help" />
</PreferenceCategory>
</PreferenceScreen>

</PreferenceCategory>
Expand Down

0 comments on commit 42e420a

Please sign in to comment.