Skip to content
This repository was archived by the owner on May 10, 2026. It is now read-only.

Commit b608bab

Browse files
committed
#194 Correctly render HTML-escaped feed item category
1 parent 203f330 commit b608bab

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

app/src/main/java/com/stario/launcher/sheet/briefing/dialog/page/FeedPageAdapter.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,9 +193,9 @@ public boolean onResourceReady(@NonNull Drawable resource, @NonNull Object model
193193
.setDuration(Animation.MEDIUM.getDuration());
194194

195195
if (!item.getCategories().isEmpty()) {
196-
String text = item.getCategories().get(0);
196+
Spanned text = cleanHtml(item.getCategories().get(0));
197197

198-
if (!text.isEmpty()) {
198+
if (!text.toString().isEmpty()) {
199199
viewHolder.category.setText(text);
200200
viewHolder.category.setVisibility(View.VISIBLE);
201201
}

0 commit comments

Comments
 (0)