|
|
@ -29,8 +29,10 @@ public class GlideDrawableListeningTarget extends DrawableImageViewTarget {
|
|
|
|
super.setResource(resource);
|
|
|
|
super.setResource(resource);
|
|
|
|
loaded.set(true);
|
|
|
|
loaded.set(true);
|
|
|
|
|
|
|
|
|
|
|
|
if (loadingView.get() != null) {
|
|
|
|
View loadingViewInstance = loadingView.get();
|
|
|
|
loadingView.get().setVisibility(View.GONE);
|
|
|
|
|
|
|
|
|
|
|
|
if (loadingViewInstance != null) {
|
|
|
|
|
|
|
|
loadingViewInstance.setVisibility(View.GONE);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -39,8 +41,10 @@ public class GlideDrawableListeningTarget extends DrawableImageViewTarget {
|
|
|
|
super.onLoadFailed(errorDrawable);
|
|
|
|
super.onLoadFailed(errorDrawable);
|
|
|
|
loaded.set(true);
|
|
|
|
loaded.set(true);
|
|
|
|
|
|
|
|
|
|
|
|
if (loadingView.get() != null) {
|
|
|
|
View loadingViewInstance = loadingView.get();
|
|
|
|
loadingView.get().setVisibility(View.GONE);
|
|
|
|
|
|
|
|
|
|
|
|
if (loadingViewInstance != null) {
|
|
|
|
|
|
|
|
loadingViewInstance.setVisibility(View.GONE);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|