Skip to content

Commit

Permalink
url new function with firebase
Browse files Browse the repository at this point in the history
  • Loading branch information
gonojuarez committed Oct 28, 2022
1 parent e6ad2c2 commit eef085c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,14 @@ public void setCustom_Texto(String t) {
@Override
public void selectIcon() {
File picto = new File(pictogramsLibraryGroup.getEditedPictogram());
File picto2 = picto;
if(!pictogramsLibraryGroup.getEditedPictogram().contains(".debug"))
picto2 = new File(pictogramsLibraryGroup.getEditedPictogram().replace("com.stonefacesoft.ottaa","com.stonefacesoft.ottaa.debug"));
if (picto.exists())
glideAttatcher.useDiskCacheStrategy().UseCornerRadius(true).setRadius(25).loadDrawable(picto, this.icon);
else if(picto2.exists()){
glideAttatcher.useDiskCacheStrategy().UseCornerRadius(true).setRadius(25).loadDrawable(picto2, this.icon);
}
else
glideAttatcher.useDiskCacheStrategy().UseCornerRadius(true).setRadius(25).loadDrawable(Uri.parse(pictogramsLibraryGroup.getUrl()), this.icon);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,7 @@ private void init() {
public void setCustom_Color(Integer color) {
this.Custom_Color = color;
//Img.setBackgroundColor(color);

Color.setColorFilter(color);

invalidate();
requestLayout();
}
Expand Down Expand Up @@ -197,8 +195,13 @@ protected Drawable findResource() {
public void selectIcon(){
try{
File picto=new File(pictogramsLibraryPictogram.getEditedPictogram());
File picto2= picto;
if(!pictogramsLibraryPictogram.getEditedPictogram().contains(".debug"))
picto2 =new File(pictogramsLibraryPictogram.getEditedPictogram().replace("com.stonefacesoft.ottaa","com.stonefacesoft.ottaa.debug"));
if(picto.exists())
glideAttatcher.useDiskCacheStrategy().loadDrawable(picto,this.icon);
else if(picto2.exists())
glideAttatcher.useDiskCacheStrategy().loadDrawable(picto2,this.icon);
else
glideAttatcher.useDiskCacheStrategy().loadDrawable(Uri.parse(pictogramsLibraryPictogram.getUrl()),this.icon);
}catch (Exception ex){
Expand Down

0 comments on commit eef085c

Please sign in to comment.