Skip to content
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

Android Render "Resources.GetDrawable(Element.Source).Mutate();" is obsolete #8

Open
aalvaradob020 opened this issue May 16, 2019 · 1 comment

Comments

@aalvaradob020
Copy link

Hi, I get this warning on the custom render for Android. The app compiles and run on debug mode, but on release mode doesn't. Can someone please check it out? Thanks in advance

@badearobert
Copy link

Hi, I get this warning on the custom render for Android. The app compiles and run on debug mode, but on release mode doesn't. Can someone please check it out? Thanks in advance

Replace
var d = Resources.GetDrawable(Element.Source).Mutate();
with
var d = Context.GetDrawable(Element.Source).Mutate();

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

No branches or pull requests

2 participants