Skip to content

Commit 025e0dc

Browse files
committed
chore: Rename swipe tutorial key to ensure onboarding runs on upgrade
1 parent 3ef7e38 commit 025e0dc

3 files changed

Lines changed: 4 additions & 2 deletions

File tree

app/src/keyboards/java/be/scri/helpers/ui/HintUtils.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ object HintUtils {
3535
putBoolean("hint_shown_settings", false)
3636
putBoolean("hint_shown_about", false)
3737
putBoolean("swipe_tutorial_shown", false)
38+
putBoolean("swipe_tutorial_interactive_shown", false)
3839
apply()
3940
}
4041
}

app/src/keyboards/java/be/scri/services/GeneralKeyboardIME.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ abstract class GeneralKeyboardIME(
422422

423423
private fun initSwipeTutorial() {
424424
val sharedPref = applicationContext.getSharedPreferences("app_preferences", MODE_PRIVATE)
425-
val tutorialShown = sharedPref.getBoolean("swipe_tutorial_shown", false)
425+
val tutorialShown = sharedPref.getBoolean("swipe_tutorial_interactive_shown", false)
426426
if (!tutorialShown) {
427427
val ic = currentInputConnection
428428
if (ic != null) {
@@ -480,7 +480,7 @@ abstract class GeneralKeyboardIME(
480480

481481
private fun dismissSwipeTutorial() {
482482
val sharedPref = applicationContext.getSharedPreferences("app_preferences", MODE_PRIVATE)
483-
sharedPref.edit().putBoolean("swipe_tutorial_shown", true).apply()
483+
sharedPref.edit().putBoolean("swipe_tutorial_interactive_shown", true).apply()
484484
setSwipeTutorialState(SwipeTutorialState.NOT_ACTIVE)
485485
}
486486

app/src/main/java/be/scri/helpers/PreferencesHelper.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -606,6 +606,7 @@ object PreferencesHelper {
606606
putBoolean("hint_shown_settings", false)
607607
putBoolean("hint_shown_about", false)
608608
putBoolean("swipe_tutorial_shown", false)
609+
putBoolean("swipe_tutorial_interactive_shown", false)
609610
apply()
610611
}
611612
}

0 commit comments

Comments
 (0)