mirror of
https://github.com/beemdevelopment/Aegis.git
synced 2025-05-14 14:02:49 +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);
|
||||
return TextDrawable.builder().beginConfig()
|
||||
.width(view.getWidth())
|
||||
.height(view.getHeight())
|
||||
.width(view.getLayoutParams().width)
|
||||
.height(view.getLayoutParams().height)
|
||||
.endConfig()
|
||||
.buildRect(text.substring(0, 1).toUpperCase(), color);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue