Skip to content

Make confirmation bottom sheets working when animations are disabled#938

Merged
patzly merged 1 commit intopatzly:masterfrom
k3a:kex-valueanim
Aug 24, 2025
Merged

Make confirmation bottom sheets working when animations are disabled#938
patzly merged 1 commit intopatzly:masterfrom
k3a:kex-valueanim

Conversation

@k3a
Copy link
Copy Markdown
Contributor

@k3a k3a commented Aug 24, 2025

When animations are disabled system-wide (or disabled automatically when battery is low on Samsung devices), bottom sheets with 3-second timeout are skipped and their action is done immediately.

This is especially problematic in Purchase flow when one needs to update the number of items purchased.

This PR fixes it by introducing a ValueAnimatorUtil - a class implementing a subset of ValueAnimator functionality. The implementation is not affected by system-wide animation scaling, therefore confirmation bottom sheets will be shown in such cases too, with their progress bars animating.

@patzly
Copy link
Copy Markdown
Owner

patzly commented Aug 24, 2025

Your pull request seems fine, thank you for your contribution! I will publish an app update in a few weeks.

@patzly patzly merged commit 36af071 into patzly:master Aug 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants