From 037fee7292135252425860c473a1f1feec92681e Mon Sep 17 00:00:00 2001 From: Pierre Date: Thu, 19 Apr 2018 17:00:37 +0200 Subject: [PATCH] Try to fix OOM issues on bitmap loading. --- .../comunic/client/data/runnables/ImageLoadRunnable.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/org/communiquons/android/comunic/client/data/runnables/ImageLoadRunnable.java b/app/src/main/java/org/communiquons/android/comunic/client/data/runnables/ImageLoadRunnable.java index 9540bfd..ce8d06b 100644 --- a/app/src/main/java/org/communiquons/android/comunic/client/data/runnables/ImageLoadRunnable.java +++ b/app/src/main/java/org/communiquons/android/comunic/client/data/runnables/ImageLoadRunnable.java @@ -135,7 +135,7 @@ public class ImageLoadRunnable implements Runnable { * Once the image was downloaded (if it wasn't already) load the image into a bitmap object * The apply to the final image view */ - private void load_image(){ + private synchronized void load_image(){ //Check if the file exists if(!file.exists()){