Fixing the same issue as #158.

This commit is contained in:
Amine Bou 2018-01-11 21:10:53 +01:00
parent b8d234c415
commit b126fc32da

View File

@ -93,7 +93,7 @@ class ItemListAdapter(
if (itm.getIcon(c).isEmpty()) {
val color = generator.getColor(itm.sourcetitle)
val textDrawable = StringBuilder()
for (s in itm.sourcetitle.split(" ".toRegex()).dropLastWhile { it.isEmpty() }.toTypedArray()) {
for (s in itm.sourcetitle.split(" ".toRegex()).filter { it.isEmpty() }.toTypedArray()) {
textDrawable.append(s[0])
}