mirror of
https://github.com/beemdevelopment/Aegis.git
synced 2025-05-14 22:12:55 +00:00
Fix a bug that caused TextDrawable to not be displayed
This commit is contained in:
parent
606d6e77e9
commit
4e74c5beb9
1 changed files with 2 additions and 2 deletions
|
@ -20,8 +20,8 @@ public class TextDrawableHelper {
|
||||||
|
|
||||||
int color = ColorGenerator.MATERIAL.getColor(text);
|
int color = ColorGenerator.MATERIAL.getColor(text);
|
||||||
return TextDrawable.builder().beginConfig()
|
return TextDrawable.builder().beginConfig()
|
||||||
.width(view.getWidth())
|
.width(view.getLayoutParams().width)
|
||||||
.height(view.getHeight())
|
.height(view.getLayoutParams().height)
|
||||||
.endConfig()
|
.endConfig()
|
||||||
.buildRect(text.substring(0, 1).toUpperCase(), color);
|
.buildRect(text.substring(0, 1).toUpperCase(), color);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue