Fixing the same issue as #158.
This commit is contained in:
parent
b8d234c415
commit
b126fc32da
@ -93,7 +93,7 @@ class ItemListAdapter(
|
|||||||
if (itm.getIcon(c).isEmpty()) {
|
if (itm.getIcon(c).isEmpty()) {
|
||||||
val color = generator.getColor(itm.sourcetitle)
|
val color = generator.getColor(itm.sourcetitle)
|
||||||
val textDrawable = StringBuilder()
|
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])
|
textDrawable.append(s[0])
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user