Fix serialization of entry icons and some other stuff

This commit is contained in:
Alexander Bakker 2018-06-07 14:33:33 +02:00
parent 8419e1f35d
commit 606d6e77e9
7 changed files with 31 additions and 15 deletions

View file

@ -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);
}
}