From 44772e3dc412aaa3fe4d36e92df0b220e4173ae1 Mon Sep 17 00:00:00 2001 From: Arjan Schrijver Date: Sat, 7 Sep 2024 21:12:32 +0200 Subject: [PATCH] Remove option to start first run screens from preferences --- .../gadgetbridge/activities/SettingsActivity.java | 9 --------- app/src/main/res/xml/preferences.xml | 4 ---- 2 files changed, 13 deletions(-) diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/SettingsActivity.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/SettingsActivity.java index 527e3c230..4483dc172 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/SettingsActivity.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/SettingsActivity.java @@ -65,7 +65,6 @@ import nodomain.freeyourgadget.gadgetbridge.GBApplication; import nodomain.freeyourgadget.gadgetbridge.R; import nodomain.freeyourgadget.gadgetbridge.activities.charts.ChartsPreferencesActivity; import nodomain.freeyourgadget.gadgetbridge.activities.discovery.DiscoveryPairingPreferenceActivity; -import nodomain.freeyourgadget.gadgetbridge.activities.welcome.WelcomeActivity; import nodomain.freeyourgadget.gadgetbridge.database.PeriodicExporter; import nodomain.freeyourgadget.gadgetbridge.externalevents.TimeChangeReceiver; import nodomain.freeyourgadget.gadgetbridge.model.Weather; @@ -438,14 +437,6 @@ public class SettingsActivity extends AbstractSettingsActivityV2 { }); } - pref = findPreference("pref_show_first_run_screen"); - if (pref != null) { - pref.setOnPreferenceClickListener(preference -> { - Intent enableIntent = new Intent(requireContext(), WelcomeActivity.class); - startActivity(enableIntent); - return true; - }); - } pref = findPreference("pref_discovery_pairing"); if (pref != null) { pref.setOnPreferenceClickListener(preference -> { diff --git a/app/src/main/res/xml/preferences.xml b/app/src/main/res/xml/preferences.xml index 8d736ee19..b5729f5f5 100644 --- a/app/src/main/res/xml/preferences.xml +++ b/app/src/main/res/xml/preferences.xml @@ -385,10 +385,6 @@ android:summary="@string/pref_cache_weather_summary" android:title="@string/pref_cache_weather" app:iconSpaceReserved="false" /> -