Skip to content

Conversation

@Luna712
Copy link
Contributor

@Luna712 Luna712 commented Dec 6, 2025

It is safer against memory leaks and doesn't require calling recycle().

This also refactors methods in UIHelper, getResourceColor, colorFromAttribute, and adjustAlpha in order to only call withStyledAttributes once and use the other two methods as shortcuts in getResourceColor.

It is safer against memory leaks and doesn't require calling `recycle()`.

This also refactors methods in UIHelper, `getResourceColor`, `colorFromAttribute`, and `adjustAlpha` in order to only call `withStyledAttributes` once and use the other two methods as shortcuts in `getResourceColor`.
@fire-light42
Copy link
Collaborator

Good pull request, but I do not want to cause merge issues with #2037, So I will leave this to after the download PR is merged.

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