Skip to content
This repository was archived by the owner on Dec 27, 2024. It is now read-only.

[ComposeMotion] Fix custom properties#640

Merged
oscar-ad merged 1 commit into
androidx:mainfrom
oscar-ad:customPropsRework
Jul 18, 2022
Merged

[ComposeMotion] Fix custom properties#640
oscar-ad merged 1 commit into
androidx:mainfrom
oscar-ad:customPropsRework

Conversation

@oscar-ad
Copy link
Copy Markdown
Contributor

Custom properties would return values that didn't correspond to the
layout, since they were effectively being calculated with a progress
value form a different measure pass.

This makes it so that custom properties are always calculated with the
current progress value used to measure the layout in the current
composition.

@oscar-ad oscar-ad requested review from camaelon and jafu888 June 29, 2022 21:39
@oscar-ad oscar-ad linked an issue Jun 29, 2022 that may be closed by this pull request
Custom properties would return values that didn't correspond to the
layout, since they were effectively being calculated with a progress
value form a different measure pass.

This makes it so that custom properties are always calculated with the
current progress value used to measure the layout in the current
composition.
@oscar-ad oscar-ad force-pushed the customPropsRework branch from 1686026 to 542dd1b Compare July 8, 2022 19:49
@oscar-ad oscar-ad merged commit 6313c57 into androidx:main Jul 18, 2022
@oscar-ad oscar-ad deleted the customPropsRework branch July 29, 2022 18:59
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

MotionLayout Custom custom property bug

1 participant