fix(avatarView): currentLayers is null on the first call

This commit is contained in:
negue 2016-08-17 01:33:53 +02:00 committed by GitHub
parent 71f796e02b
commit fdf00b66aa

View file

@ -316,7 +316,7 @@ public class AvatarView extends View {
if (oldUser != null) {
Map<LayerType, String> newLayerMap = getLayerMap(user, false);
boolean equals = currentLayers.equals(newLayerMap);
boolean equals = currentLayers != null && currentLayers.equals(newLayerMap);
if (!equals) {
multiDraweeHolder.clear();