[Bug]: Improve Performance of `canRequestAds` in AdsControl Interface
Opened this issue · 0 comments
teogor commented
Is there an existing issue for this?
- I have searched the existing issues
Is there a StackOverflow question about this issue?
- I have searched StackOverflow
What happened?
Currently, the AdsControl
interface includes a property named canRequestAds
, which plays a crucial role in determining whether ads can be requested. However, it is observed that the current implementation of this property directly blocks the UI thread, leading to performance issues.
Expected Behavior
The canRequestAds
property should efficiently fetch its value from memory via shared preferences without causing UI thread blocking.
Actual Behavior
The current implementation of canRequestAds
blocks the UI thread, resulting in performance degradation and potential user experience issues.
Relevant logcat output
No response
Code of Conduct
- I agree to follow this project's Code of Conduct