Fixed
Status Update
Comments
an...@google.com <an...@google.com>
ap...@google.com <ap...@google.com> #2
Thanks for filing the issue.
This is a particularly hard device to come by - do you happen to have access to the device? If so could you provide us with the output of: adb shell dumpsys media.camera > info.txt
Thanks!
This is a particularly hard device to come by - do you happen to have access to the device? If so could you provide us with the output of: adb shell dumpsys media.camera > info.txt
Thanks!
Description
It seems that onGloballyPositioned always requests remeasurement on recomposition.
When setting a new modifier we are doing:
and here
addedCallback
will always be true, becauseModifier.onGloballyPositioned
is always creating a new object on recomposition. Fixing this might require an API change asonGloballyPositioned
is currently inline, so we cannot use the lambda instance to check for modifier equality across recomposition.