Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7d9cd35c authored by Moez Bhatti's avatar Moez Bhatti
Browse files

Use correct default val for theme observable

parent 25904059
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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()