mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-24 00:37:47 +00:00
Code review changes
This commit is contained in:
parent
bbedad5ebb
commit
4df530d341
@ -30,8 +30,10 @@ public class GlideBitmapListeningTarget extends BitmapImageViewTarget {
|
||||
super.setResource(resource);
|
||||
loaded.set(true);
|
||||
|
||||
if (loadingView.get() != null) {
|
||||
loadingView.get().setVisibility(View.GONE);
|
||||
View loadingViewInstance = loadingView.get();
|
||||
|
||||
if (loadingViewInstance != null) {
|
||||
loadingViewInstance.setVisibility(View.GONE);
|
||||
}
|
||||
}
|
||||
|
||||
@ -40,8 +42,10 @@ public class GlideBitmapListeningTarget extends BitmapImageViewTarget {
|
||||
super.onLoadFailed(errorDrawable);
|
||||
loaded.set(true);
|
||||
|
||||
if (loadingView.get() != null) {
|
||||
loadingView.get().setVisibility(View.GONE);
|
||||
View loadingViewInstance = loadingView.get();
|
||||
|
||||
if (loadingViewInstance != null) {
|
||||
loadingViewInstance.setVisibility(View.GONE);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -29,8 +29,10 @@ public class GlideDrawableListeningTarget extends DrawableImageViewTarget {
|
||||
super.setResource(resource);
|
||||
loaded.set(true);
|
||||
|
||||
if (loadingView.get() != null) {
|
||||
loadingView.get().setVisibility(View.GONE);
|
||||
View loadingViewInstance = loadingView.get();
|
||||
|
||||
if (loadingViewInstance != null) {
|
||||
loadingViewInstance.setVisibility(View.GONE);
|
||||
}
|
||||
}
|
||||
|
||||
@ -39,8 +41,10 @@ public class GlideDrawableListeningTarget extends DrawableImageViewTarget {
|
||||
super.onLoadFailed(errorDrawable);
|
||||
loaded.set(true);
|
||||
|
||||
if (loadingView.get() != null) {
|
||||
loadingView.get().setVisibility(View.GONE);
|
||||
View loadingViewInstance = loadingView.get();
|
||||
|
||||
if (loadingViewInstance != null) {
|
||||
loadingViewInstance.setVisibility(View.GONE);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user