Open obsantos opened 3 years ago
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as "bug" or "enhancement" and I will leave it open. Thank you for your contributions.
Got this email form stale bot
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as "bug" or "enhancement" and I will leave it open. Thank you for your contributions.
but i'm not allowed to add labels to this issue 🤷♂️
Description
When using
targetSdkVersion 30
to target Android 11 apis,StrictMode
is complaining of a non-visual Context usage (in this caseApplication
Context) when trying to access UI constants.Problem seems to be related of using the application context as seen here:
StrictMode
source code for this warning can be found hereReproduction
Any usage of
Fresco.newDraweeControllerBuilder()
as it uses the sameContext
used to initializeFresco
(app context). But potentially any use of Fresco can lead to thisStrictMode
warningAdditional Information
2.4.0
11
,targetSdkVersion 30