mirror of
https://github.com/quik-sms/quik.git
synced 2026-11-17 11:38:51 +01:00
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> {
|
||||
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))
|
||||
}
|
||||
return pref.asObservable()
|
||||
|
||||
Reference in New Issue
Block a user