Commit a3420cbd authored by Adrien Dorsaz's avatar Adrien Dorsaz

Improves states display : change background color if unread and set a star in title if stareed.

parent b9ced08f
......@@ -235,10 +235,19 @@ public class ArticleListActivity extends ListActivity {
if (articleItemTitle != null && articleItemAuthor != null
&& articleItemDate != null) {
String title = "";
if (!article.isRead()) {
title = "* ";
articleItem.setBackgroundColor(getResources()
.getColor(R.color.isUnRead));
} else {
articleItem.setBackgroundColor(getResources()
.getColor(R.color.isRead));
}
String title = "";
if (article.isStarred()) {
title += "\u2605 ";
}
title += article.getSubject();
articleItemTitle.setText(title);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment