Browse Source

change unread dot color to accent

pull/25/head
Thodoris1999 7 years ago
parent
commit
9fdeb46fca
  1. 2
      app/src/main/java/gr/thmmy/mthmmy/activities/board/BoardAdapter.java

2
app/src/main/java/gr/thmmy/mthmmy/activities/board/BoardAdapter.java

@ -233,7 +233,7 @@ class BoardAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder> {
topicViewHolder.topicSubject.setTypeface(Typeface.createFromAsset(context.getAssets() topicViewHolder.topicSubject.setTypeface(Typeface.createFromAsset(context.getAssets()
, "fonts/fontawesome-webfont.ttf")); , "fonts/fontawesome-webfont.ttf"));
String lockedSticky = topic.isUnread() ? String lockedSticky = topic.isUnread() ?
Html.fromHtml("<font size=\"1\">" + context.getString(R.string.fa_circle) + "</font> ").toString() : ""; Html.fromHtml("<font size=\"1\" color=\""+ context.getResources().getColor(R.color.accent) + "\">" + context.getString(R.string.fa_circle) + "</font> ").toString() : "";
lockedSticky += topic.getSubject(); lockedSticky += topic.getSubject();
if (topic.isLocked()) if (topic.isLocked())
lockedSticky += " " + context.getResources().getString(R.string.fa_lock); lockedSticky += " " + context.getResources().getString(R.string.fa_lock);

Loading…
Cancel
Save