Fix a bug that caused TextDrawable to not be displayed

pull/120/head
Alexander Bakker 7 years ago
parent 606d6e77e9
commit 4e74c5beb9

@ -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…
Cancel
Save