forked from upstream-mirrors/quik
Use correct default val for theme observable
This commit is contained in:
@@ -89,7 +89,8 @@ class Colors @Inject constructor(
|
|||||||
|
|
||||||
fun themeObservable(recipient: Recipient? = null): Observable<Theme> {
|
fun themeObservable(recipient: Recipient? = null): Observable<Theme> {
|
||||||
val pref = when {
|
val pref = when {
|
||||||
recipient == null || !prefs.autoColor.get() -> prefs.theme()
|
recipient == null -> prefs.theme()
|
||||||
|
prefs.autoColor.get() -> prefs.theme(recipient.id, prefs.theme().get())
|
||||||
else -> prefs.theme(recipient.id, generateColor(recipient))
|
else -> prefs.theme(recipient.id, generateColor(recipient))
|
||||||
}
|
}
|
||||||
return pref.asObservable()
|
return pref.asObservable()
|
||||||
|
|||||||
Reference in New Issue
Block a user