fixed caching key not being calculated properly

This commit is contained in:
Christian Schneppe 2018-11-23 13:27:56 +01:00
parent b89c63d48e
commit b2969350c6

View file

@ -474,7 +474,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;