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..260139f 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 @@ -93,7 +93,7 @@ private void setData() { id = pictogramsLibraryGroup.getId(); this.setCustom_Texto(pictogramsLibraryGroup.getObjectName()); if (pictogramsLibraryGroup.getEditedPictogram().isEmpty()) { - glideAttatcher.useDiskCacheStrategy().loadDrawable(mContext.getResources().getDrawable(mContext.getResources().getIdentifier(pictogramsLibraryGroup.getPictogram(), + glideAttatcher.setHeight(icon.getHeight()).setWidth(icon.getWidth()).useDiskCacheStrategy().loadDrawable(mContext.getResources().getDrawable(mContext.getResources().getIdentifier(pictogramsLibraryGroup.getPictogram(), "drawable", mContext.getPackageName())), this.icon); } else { File picto = new File(pictogramsLibraryGroup.getEditedPictogram()); 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 d0bb181..5df4ee3 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 @@ -157,7 +157,7 @@ private void setData(){ cargarColor(pictogramsLibraryPictogram.getType()); if(pictogramsLibraryPictogram.getEditedPictogram().isEmpty()){ - glideAttatcher.useDiskCacheStrategy().loadDrawable(mContext.getResources().getDrawable(mContext.getResources().getIdentifier(pictogramsLibraryPictogram.getPictogram(), + glideAttatcher.setWidth(icon.getWidth()).setHeight(icon.getHeight()).useDiskCacheStrategy().loadDrawable(mContext.getResources().getDrawable(mContext.getResources().getIdentifier(pictogramsLibraryPictogram.getPictogram(), "drawable", mContext.getPackageName())),this.icon); }else{ File picto=new File(pictogramsLibraryPictogram.getEditedPictogram());