1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2025-06-19 00:05:16 +00:00

Start to show tour

This commit is contained in:
2021-04-17 18:05:33 +02:00
parent 2533c23703
commit 7c8a82566f
4 changed files with 238 additions and 6 deletions

View File

@ -71,6 +71,9 @@ class AccountHelper {
await preferences.setInt(PreferencesKeyList.USER_ID, userID);
_currentUserID = userID;
// Mark the tour as unseen
await preferences.setBool(PreferencesKeyList.IS_TOUR_SEEN, false);
return AuthResult.SUCCESS;
}

View File

@ -14,6 +14,7 @@ enum PreferencesKeyList {
FORCE_MOBILE_MODE,
SHOW_PERFORMANCE_OVERLAY,
PUSH_NOTIFICATIONS_STATUS,
IS_TOUR_SEEN,
}
const _PreferenceKeysName = {
@ -23,6 +24,7 @@ const _PreferenceKeysName = {
PreferencesKeyList.FORCE_MOBILE_MODE: "force_mobile_mode",
PreferencesKeyList.SHOW_PERFORMANCE_OVERLAY: "perfs_overlay",
PreferencesKeyList.PUSH_NOTIFICATIONS_STATUS: "push_notifications_status",
PreferencesKeyList.IS_TOUR_SEEN: "is_tour_seen",
};
class PreferencesHelper {