From c6a97e7cc83eccfd63e1637b3d67583e7434de81 Mon Sep 17 00:00:00 2001 From: andrekir Date: Fri, 3 Nov 2023 18:57:44 -0300 Subject: [PATCH] refactor: move app intro after language picker --- app/src/main/java/com/geeksville/mesh/MainActivity.kt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/com/geeksville/mesh/MainActivity.kt b/app/src/main/java/com/geeksville/mesh/MainActivity.kt index 7eac6b4f9..c2dc6c561 100644 --- a/app/src/main/java/com/geeksville/mesh/MainActivity.kt +++ b/app/src/main/java/com/geeksville/mesh/MainActivity.kt @@ -189,10 +189,6 @@ class MainActivity : AppCompatActivity(), Logging { if (savedInstanceState == null) { val prefs = UIViewModel.getPreferences(this) - // First run: show AppIntroduction - if (!prefs.getBoolean("app_intro_completed", false)) { - startActivity(Intent(this, AppIntroduction::class.java)) - } // First run: migrate in-app language prefs to appcompat val lang = prefs.getString("lang", LanguageUtils.SYSTEM_DEFAULT) if (lang != LanguageUtils.SYSTEM_MANAGED) LanguageUtils.migrateLanguagePrefs(prefs) @@ -201,6 +197,10 @@ class MainActivity : AppCompatActivity(), Logging { AppCompatDelegate.setDefaultNightMode( prefs.getInt("theme", AppCompatDelegate.MODE_NIGHT_FOLLOW_SYSTEM) ) + // First run: show AppIntroduction + if (!prefs.getBoolean("app_intro_completed", false)) { + startActivity(Intent(this, AppIntroduction::class.java)) + } // Ask user to rate in play store (application as GeeksvilleApplication).askToRate(this) }