From aca4ba981f325553edb5cc45accf219fd42e6b97 Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Thu, 8 Nov 2018 20:52:57 +0100 Subject: [PATCH] fixed caching key not being calculated properly --- .../java/eu/siacs/conversations/services/AvatarService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/eu/siacs/conversations/services/AvatarService.java b/src/main/java/eu/siacs/conversations/services/AvatarService.java index 02ab3f4cd..cfd3d612d 100644 --- a/src/main/java/eu/siacs/conversations/services/AvatarService.java +++ b/src/main/java/eu/siacs/conversations/services/AvatarService.java @@ -460,7 +460,7 @@ public class AvatarService implements OnAdvancedStreamFeaturesLoaded { }*/ public Bitmap get(final String name, String seed, final int size, boolean cachedOnly) { - final String KEY = key(seed == null ? name : seed, size); + final String KEY = key(seed == null ? name : name+"\0"+seed, size); Bitmap bitmap = mXmppConnectionService.getBitmapCache().get(KEY); if (bitmap != null || cachedOnly) { return bitmap;