mirror of
https://github.com/szkolny-eu/szkolny-android.git
synced 2024-11-24 10:54:36 -06:00
[Config] Fix only notes card visible on new profiles.
This commit is contained in:
parent
52968cafad
commit
cb953ea8a8
@ -37,9 +37,11 @@ class ProfileConfigMigration(config: ProfileConfig) {
|
||||
}
|
||||
|
||||
if (dataVersion < 3) {
|
||||
if (ui.homeCards.isNotEmpty()) {
|
||||
ui.homeCards = ui.homeCards.toMutableList().also {
|
||||
it.add(HomeCardModel(config.profileId, HomeCard.CARD_NOTES))
|
||||
}
|
||||
}
|
||||
|
||||
dataVersion = 3
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user