Browse Source

Minor fixes for unread topics and settings drawer item icon

pull/27/head
Apostolos Fanakis 7 years ago
parent
commit
e5b343c1cc
  1. 3
      app/src/main/java/gr/thmmy/mthmmy/activities/board/BoardAdapter.java
  2. 2
      app/src/main/java/gr/thmmy/mthmmy/base/BaseActivity.java

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

@ -234,6 +234,9 @@ class BoardAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder> {
topicViewHolder.topicUnreadDot.setTypeface(Typeface.createFromAsset(context.getAssets(), "fonts/fontawesome-webfont.ttf")); topicViewHolder.topicUnreadDot.setTypeface(Typeface.createFromAsset(context.getAssets(), "fonts/fontawesome-webfont.ttf"));
if (topic.isUnread()) if (topic.isUnread())
topicViewHolder.topicUnreadDot.setVisibility(View.VISIBLE); topicViewHolder.topicUnreadDot.setVisibility(View.VISIBLE);
else {
topicViewHolder.topicUnreadDot.setVisibility(View.GONE);
}
String lockedSticky = topic.getSubject(); String 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);

2
app/src/main/java/gr/thmmy/mthmmy/base/BaseActivity.java

@ -197,7 +197,7 @@ public abstract class BaseActivity extends AppCompatActivity {
.color(primaryColor); .color(primaryColor);
settingsIconSelected = new IconicsDrawable(this) settingsIconSelected = new IconicsDrawable(this)
.icon(GoogleMaterial.Icon.gmd_file_download) .icon(GoogleMaterial.Icon.gmd_settings)
.color(selectedSecondaryColor); .color(selectedSecondaryColor);
loginIcon = new IconicsDrawable(this) loginIcon = new IconicsDrawable(this)

Loading…
Cancel
Save