Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
jamorham committed Dec 31, 2024
2 parents c5fdd53 + 42e420a commit 8ed51e7
Showing 6 changed files with 458 additions and 463 deletions.
Original file line number Diff line number Diff line change
@@ -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);
@@ -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);
Original file line number Diff line number Diff line change
@@ -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();
Original file line number Diff line number Diff line change
@@ -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"
Loading

0 comments on commit 8ed51e7

Please sign in to comment.