mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-07-18 20:04:11 +00:00
Fix potential crash when loading avatar
This commit is contained in:
parent
afc8787f6b
commit
f375e419a6
1 changed files with 3 additions and 1 deletions
|
|
@ -133,7 +133,9 @@ public class AvatarView extends View {
|
|||
ImageInfo imageInfo,
|
||||
Animatable anim) {
|
||||
if (imageInfo != null) {
|
||||
multiDraweeHolder.get(layerNumber).getTopLevelDrawable().setBounds(getLayerBounds(layerKey, layerName, imageInfo));
|
||||
if (multiDraweeHolder.size() > layerNumber) {
|
||||
multiDraweeHolder.get(layerNumber).getTopLevelDrawable().setBounds(getLayerBounds(layerKey, layerName, imageInfo));
|
||||
}
|
||||
onLayerComplete();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue