Custom color schemes v2 - part 3
Store preferences and apply color schemes
This commit is contained in:
@@ -44,7 +44,8 @@ class ThemeRepository(
|
||||
}
|
||||
}
|
||||
|
||||
fun getThemeOrDefault(id: UUID): Flow<Theme> {
|
||||
fun getThemeOrDefault(id: UUID?): Flow<Theme> {
|
||||
if (id == null) return flowOf(getDefaultTheme())
|
||||
return getTheme(id).map { it ?: getDefaultTheme() }
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user