mirror of
https://github.com/tapframe/NuvioStreaming.git
synced 2026-05-17 15:32:01 +00:00
fix: notify ThemeSettingsRepository when cached profiles are loaded
loadCachedProfiles() sets activeProfileIndex but did not notify ThemeSettingsRepository to re-read profile-scoped settings (theme, amoled) from the correct profile key. This ensures theme and other profile-scoped preferences are loaded from the correct profile after the cached profile data is applied.
This commit is contained in:
parent
e15a398f3e
commit
ee61f2d83c
1 changed files with 1 additions and 0 deletions
|
|
@ -70,6 +70,7 @@ object ProfileRepository {
|
|||
val stored = decodeStoredPayload() ?: return false
|
||||
loadedCacheForUserId = stored.userId
|
||||
applyStoredPayload(stored)
|
||||
ThemeSettingsRepository.onProfileChanged()
|
||||
return _state.value.profiles.isNotEmpty()
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue