komikku/app
Two-Ai 2815068a00 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.

(cherry picked from commit 35d381144d010be47566ee480c311c3d13952822)
2023-04-09 18:33:32 -04:00
..
src Cleanup Preference.asHotFlow() (#9257) 2023-04-09 18:33:32 -04:00
.gitignore Move google-services.json 2020-04-29 17:56:05 -04:00
build.gradle.kts Use Compose icons instead of drawables 2023-03-14 23:36:39 -04:00
proguard-android-optimize.txt Proguard fixes 2021-05-22 16:07:11 -04:00
proguard-rules.pro Don't optimize out serializers 2023-03-16 17:22:52 -04:00
shortcuts.xml Remove more unused strings 2021-05-31 23:48:06 -04:00