New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make Android respect power saving/disabled animations #17287
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PureWeen
requested changes
Sep 13, 2023
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
DisablingTickerFinishesAllAnimationsInChain failing on mac
StephaneDelcroix
previously approved these changes
Sep 18, 2023
hartez
force-pushed
the
fix-android-animation-battery
branch
from
September 19, 2023 20:27
4b1f7df
to
54c48be
Compare
PureWeen
reviewed
Sep 24, 2023
PureWeen
previously approved these changes
Sep 25, 2023
Converting to draft until I can figure out why |
hartez
force-pushed
the
fix-android-animation-battery
branch
from
October 4, 2023 17:25
7e8a249
to
92f5b51
Compare
Make Android respect power saving/disabled animations; Watch animation duration if API >= 33
hartez
force-pushed
the
fix-android-animation-battery
branch
from
October 25, 2023 15:34
d4b361f
to
6a338a8
Compare
mattleibow
reviewed
Oct 26, 2023
src/Controls/tests/Core.UnitTests/TestClasses/AnimationReadyHandler.cs
Outdated
Show resolved
Hide resolved
mattleibow
approved these changes
Oct 26, 2023
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
When the animation methods and tickers were ported from Forms to MAUI, the bits which pay attention to the Android system animation settings did not make the port. These changes bring those bits forward:
If the system's animations are disabled (either by accessibility features or developer features), new animations will jump immediately to their finished state
If the device's power saving mode kicks on while animations are in progress, the animations will immediately jump to their finished state
If the device's animation durations is set to zero (disabled) while animations are in progress and the API version is 33 or greater, the animations will immediately jump to their finished state
Fixes #16476.
Fixes #16478.
This should make the tests from #16511 pass.