chinwag-android/app
Nik Clayton 5e8a63a046
Throttle UI actions instead of debouncing (#3651)
Introduce Flow<T>.throttleFirst(). In a flow this emits the first value,
and each value afterwards that is > some timeout after the previous
value.

This prevents accidental double-taps on UI elements from generating
multiple-actions.

The previous code used debounce(). That has a similar effect, but with
debounce() the code has to wait until after the timeout period has
elapsed before it can process the action, leading to an unnecessary
UI delay.

With throttleFirst a value is emitted immediately, there's no need
to wait. It's subsequent values that are potentially throttled.
2023-06-11 13:34:22 +02:00
..
schemas/com.keylesspalace.tusky.db.AppDatabase Save the a copy of the notification marker ID locally (#3672) 2023-05-18 23:23:42 +02:00
src Throttle UI actions instead of debouncing (#3651) 2023-06-11 13:34:22 +02:00
build.gradle Prepare 22.0 (versionCode 110) (#3718) 2023-06-08 12:35:09 +02:00
getGitSha.gradle Previous attempt to fix git sha on non-git build broke git build. (#3322) 2023-02-16 20:20:52 +01:00
lint-baseline.xml Replace deprecated getParcelable* methods with compat versions (#3633) 2023-06-11 12:58:55 +02:00
lint.xml Ignore LogConditional issues (#3615) 2023-05-04 14:50:21 +02:00
proguard-rules.pro Remove shrinker rules for okhttp (#3560) 2023-04-24 12:08:03 +02:00