diff --git a/app/pictogramslibrary/src/main/java/com/stonefacesoft/pictogramslibrary/view/GroupView.java b/app/pictogramslibrary/src/main/java/com/stonefacesoft/pictogramslibrary/view/GroupView.java index 88c1380..7643f71 100644 --- a/app/pictogramslibrary/src/main/java/com/stonefacesoft/pictogramslibrary/view/GroupView.java +++ b/app/pictogramslibrary/src/main/java/com/stonefacesoft/pictogramslibrary/view/GroupView.java @@ -92,7 +92,7 @@ public void setPictogramsLibraryGroup(Group pictogramsLibraryGroup) { private void setData() { id = pictogramsLibraryGroup.getId(); this.setCustom_Texto(pictogramsLibraryGroup.getObjectName()); - if (pictogramsLibraryGroup.getEditedPictogram().isEmpty()) { + if (pictogramsLibraryGroup.getEditedPictogram().isEmpty() && !pictogramsLibraryGroup.getPictogram().isEmpty()) { glideAttatcher.useDiskCacheStrategy().loadDrawable(mContext.getResources().getDrawable(mContext.getResources().getIdentifier(pictogramsLibraryGroup.getPictogram(), "drawable", mContext.getPackageName())), this.icon); } else { diff --git a/app/pictogramslibrary/src/main/java/com/stonefacesoft/pictogramslibrary/view/PictoView.java b/app/pictogramslibrary/src/main/java/com/stonefacesoft/pictogramslibrary/view/PictoView.java index 172120f..a6aa194 100644 --- a/app/pictogramslibrary/src/main/java/com/stonefacesoft/pictogramslibrary/view/PictoView.java +++ b/app/pictogramslibrary/src/main/java/com/stonefacesoft/pictogramslibrary/view/PictoView.java @@ -155,7 +155,8 @@ private void setData(){ this.setCustom_Texto(pictogramsLibraryPictogram.getObjectName()); this.icon.setScaleType(ImageView.ScaleType.FIT_CENTER); cargarColor(pictogramsLibraryPictogram.getType()); - if(pictogramsLibraryPictogram.getEditedPictogram().isEmpty()){ + + if(pictogramsLibraryPictogram.getEditedPictogram().isEmpty()&&!pictogramsLibraryPictogram.getPictogram().isEmpty()){ glideAttatcher.useDiskCacheStrategy().loadDrawable(mContext.getResources().getDrawable(mContext.getResources().getIdentifier(pictogramsLibraryPictogram.getPictogram(), "drawable", mContext.getPackageName())),this.icon); }else{