tachiyomi/app
Two-Ai 35d381144d
Cleanup Preference.asHotFlow() (#9257)
* Drop duplicate initial call in Preference.asHotFlow

Preference.changes() always starts by returning the current value of
the preference, so asHotFlow calls block twice on the initial value.

Possible breaking change: As implemented, asHotFlow ran block(get())
before returning the flow. After this change, the first call to block
will run within the flow collection. This might cause concurrency
issues if the flow collection is late to execute.

* Inline Preference.asHotFlow

The Preference.changes().onEach().launchIn() pattern is used widely,
so the asHotFlow extension method is redundant.
2023-03-26 11:52:54 -04:00
..
src Cleanup Preference.asHotFlow() (#9257) 2023-03-26 11:52:54 -04:00
.gitignore
build.gradle.kts Use Compose icons instead of drawables 2023-03-05 15:37:41 -05:00
proguard-android-optimize.txt
proguard-rules.pro
shortcuts.xml