Skip to content

Conversation

@vtrifonov
Copy link
Contributor

@vtrifonov vtrifonov commented Mar 30, 2020

PR Checklist

It seems that keeping the cache solves the problem with newDrawable(android.content.res.Resources) on null object. However, it is not clear why we were clearing it from the cache.

Fixes #7954, #7867.

@cla-bot cla-bot bot added the cla: yes label Mar 30, 2020
@NathanaelA

This comment was marked as abuse.

@vtrifonov
Copy link
Contributor Author

@NathanaelA that’s what I’m trying to solve and seems that this fixes the mapbox issue and I want to see whether it breaks anything else.

@vtrifonov vtrifonov changed the title fix: do not clear androidView._cachedDrawable DO NOT MERGE!!! fix: do not clear androidView._cachedDrawable Mar 30, 2020
@vtrifonov vtrifonov force-pushed the trifonov/drawable-fix branch from b733907 to 522ab8d Compare March 30, 2020 20:04
@vtrifonov vtrifonov changed the title DO NOT MERGE!!! fix: do not clear androidView._cachedDrawable fix: do not clear androidView._cachedDrawable Apr 1, 2020
@vtrifonov vtrifonov merged commit e421129 into master Apr 1, 2020
@vtrifonov vtrifonov deleted the trifonov/drawable-fix branch April 1, 2020 14:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

newDrawable on NULL object crash in ui/styling/background.android.ts

4 participants