From fee72680ae0fb93f743e1bda7b6efe54dea4b37e Mon Sep 17 00:00:00 2001 From: Pierre Date: Mon, 25 Dec 2017 15:26:37 +0100 Subject: [PATCH] Fixed issue --- .../comunic/client/data/ImageLoad/ImageLoadManager.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/org/communiquons/android/comunic/client/data/ImageLoad/ImageLoadManager.java b/app/src/main/java/org/communiquons/android/comunic/client/data/ImageLoad/ImageLoadManager.java index d6b1e4e..e1e0602 100644 --- a/app/src/main/java/org/communiquons/android/comunic/client/data/ImageLoad/ImageLoadManager.java +++ b/app/src/main/java/org/communiquons/android/comunic/client/data/ImageLoad/ImageLoadManager.java @@ -47,7 +47,7 @@ public class ImageLoadManager { */ public static void load(Context context, String url, ImageView imageView){ - //Initializate class if required + //Initialize class if required if(!is_constructed()) construct(); @@ -69,6 +69,10 @@ public class ImageLoadManager { */ public static void remove(ImageView view){ + //Initialize class if required + if(!is_constructed()) + construct(); + //Check if the view has an associated thread if(threads.containsKey(view)){