Skip to content

Use withStyledAttributes#2305

Merged
fire-light42 merged 4 commits intorecloudstream:masterfrom
Luna712:use-withstyledattributes
Feb 17, 2026
Merged

Use withStyledAttributes#2305
fire-light42 merged 4 commits intorecloudstream:masterfrom
Luna712:use-withstyledattributes

Conversation

@Luna712
Copy link
Copy Markdown
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
Copy Markdown
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.

@Luna712
Copy link
Copy Markdown
Contributor Author

Luna712 commented Feb 17, 2026

@fire-light42 I rebased this now after the download PR was merged

@fire-light42 fire-light42 merged commit 76728d8 into recloudstream:master Feb 17, 2026
2 checks passed
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