mirror of
https://github.com/status-im/react-native-fast-image.git
synced 2025-02-23 11:48:16 +00:00
Handle null view.glideUrl.
This commit is contained in:
parent
8289548674
commit
75a6ce766c
@ -101,6 +101,10 @@ class FastImageViewManager extends SimpleViewManager<FastImageViewWithUrl> imple
|
||||
public void onDropViewInstance(FastImageViewWithUrl view) {
|
||||
// This will cancel existing requests.
|
||||
requestManager.clear(view);
|
||||
if (view.glideUrl == null) {
|
||||
super.onDropViewInstance(view);
|
||||
return;
|
||||
}
|
||||
final String key = view.glideUrl.toString();
|
||||
FastImageOkHttpProgressGlideModule.forget(key);
|
||||
List<FastImageViewWithUrl> viewsForKey = VIEWS_FOR_URLS.get(key);
|
||||
|
Loading…
x
Reference in New Issue
Block a user