aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/de/pixart/messenger/persistance
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2018-09-26 21:48:57 +0200
committerChristian Schneppe <christian@pix-art.de>2018-09-26 21:48:57 +0200
commitf4ac1f68feac3e3b19ab5932ede9d79dd14bff27 (patch)
treef45948ade6055a72a919685a3c6430969f02b761 /src/main/java/de/pixart/messenger/persistance
parent8cb243536bb1fbe7743ebc428d79b6f99c844444 (diff)
do not show media overview in contact/conference details when missing storage permission
Diffstat (limited to 'src/main/java/de/pixart/messenger/persistance')
-rw-r--r--src/main/java/de/pixart/messenger/persistance/FileBackend.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/de/pixart/messenger/persistance/FileBackend.java b/src/main/java/de/pixart/messenger/persistance/FileBackend.java
index 92bb84e33..822fa6318 100644
--- a/src/main/java/de/pixart/messenger/persistance/FileBackend.java
+++ b/src/main/java/de/pixart/messenger/persistance/FileBackend.java
@@ -1092,7 +1092,9 @@ public class FileBackend {
bitmap = withGifOverlay;
}
}
- cache.put(key, bitmap);
+ if (bitmap != null) {
+ cache.put(key, bitmap);
+ }
return bitmap;
}