Minor cleanup

This commit is contained in:
arkon
2021-04-03 10:12:31 -04:00
parent efd2a0cb7b
commit a3992d9fbe
5 changed files with 12 additions and 12 deletions

View File

@@ -22,7 +22,7 @@ import java.util.Locale
import eu.kanade.tachiyomi.data.preference.PreferenceKeys as Keys
import eu.kanade.tachiyomi.data.preference.PreferenceValues as Values
fun <T> Preference<T>.asImmediateFlow(block: (value: T) -> Unit): Flow<T> {
fun <T> Preference<T>.asImmediateFlow(block: (T) -> Unit): Flow<T> {
block(get())
return asFlow()
.onEach { block(it) }