Handle null view.glideUrl.

This commit is contained in:
(◕ᴥ◕) 2018-09-24 05:54:24 +08:00 committed by Dylan Vann
parent 8289548674
commit 75a6ce766c

View File

@ -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);