mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
refactor: move app intro after language picker
This commit is contained in:
parent
a7b0d70c03
commit
c6a97e7cc8
1 changed files with 4 additions and 4 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue