fixed caching key not being calculated properly
This commit is contained in:
parent
b89c63d48e
commit
b2969350c6
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Reference in a new issue