mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-05-21 21:29:00 +00:00
fix(avatarView): currentLayers is null on the first call
This commit is contained in:
parent
71f796e02b
commit
fdf00b66aa
1 changed files with 1 additions and 1 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue