mirror of
https://github.com/quik-sms/quik.git
synced 2026-11-22 21:58:53 +01:00
Fix 7d9cd35c7c
This commit is contained in:
@@ -90,8 +90,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.theme()
|
recipient == null -> prefs.theme()
|
||||||
prefs.autoColor.get() -> prefs.theme(recipient.id, prefs.theme().get())
|
prefs.autoColor.get() -> prefs.theme(recipient.id, generateColor(recipient))
|
||||||
else -> prefs.theme(recipient.id, generateColor(recipient))
|
else -> prefs.theme(recipient.id, prefs.theme().get())
|
||||||
}
|
}
|
||||||
return pref.asObservable()
|
return pref.asObservable()
|
||||||
.map { color -> Theme(color, this) }
|
.map { color -> Theme(color, this) }
|
||||||
|
|||||||
Reference in New Issue
Block a user