fixed caching key not being calculated properly
This commit is contained in:
parent
235f33b8b1
commit
aca4ba981f
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue