mirror of
https://github.com/beemdevelopment/Aegis.git
synced 2025-05-14 22:12:55 +00:00
Fix serialization of entry icons and some other stuff
This commit is contained in:
parent
8419e1f35d
commit
606d6e77e9
7 changed files with 31 additions and 15 deletions
|
@ -18,10 +18,11 @@ public class TextDrawableHelper {
|
|||
text = fallback;
|
||||
}
|
||||
|
||||
ColorGenerator generator = ColorGenerator.MATERIAL;
|
||||
int color = generator.getColor(text);
|
||||
int color = ColorGenerator.MATERIAL.getColor(text);
|
||||
return TextDrawable.builder().beginConfig()
|
||||
.width(view.getWidth())
|
||||
.height(view.getHeight()).endConfig().buildRect(text.substring(0, 1).toUpperCase(), color);
|
||||
.height(view.getHeight())
|
||||
.endConfig()
|
||||
.buildRect(text.substring(0, 1).toUpperCase(), color);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue