mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 06:01:40 +00:00
Remove default value for allowBlackTheme in mapToTheme
This commit is contained in:
@@ -33,7 +33,7 @@ fun Theme.isDark(): Boolean {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fun Flow<String?>.mapToTheme(allowBlackTheme: Boolean = true): Flow<Theme> = map {
|
fun Flow<String?>.mapToTheme(allowBlackTheme: Boolean): Flow<Theme> = map {
|
||||||
when (it) {
|
when (it) {
|
||||||
null -> Theme.System
|
null -> Theme.System
|
||||||
else -> Theme.valueOf(it)
|
else -> Theme.valueOf(it)
|
||||||
|
|||||||
Reference in New Issue
Block a user