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

Commit fa51f6fb authored by Moez Bhatti's avatar Moez Bhatti Committed by Dayona Joseph
Browse files

Use correct default val for theme observable

parent 624920fc
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()