Browse Source

UnreadFragment tiny tweak

pull/70/head
Ezerous 5 years ago
parent
commit
c242b009e0
No known key found for this signature in database GPG Key ID: 262B2954BBA319E3
  1. 11
      app/src/main/java/gr/thmmy/mthmmy/activities/main/unread/UnreadFragment.java

11
app/src/main/java/gr/thmmy/mthmmy/activities/main/unread/UnreadFragment.java

@ -119,16 +119,7 @@ public class UnreadFragment extends BaseFragment {
progressBar = rootView.findViewById(R.id.progressBar); progressBar = rootView.findViewById(R.id.progressBar);
noUnreadTopicsTextView = rootView.findViewById(R.id.no_unread_topics); noUnreadTopicsTextView = rootView.findViewById(R.id.no_unread_topics);
markAsReadFAB = rootView.findViewById(R.id.unread_fab); markAsReadFAB = rootView.findViewById(R.id.unread_fab);
if(topicSummaries.isEmpty()){
hideMarkAsReadFAB();
noUnreadTopicsTextView.setVisibility(View.VISIBLE);
}
else{
noUnreadTopicsTextView.setVisibility(View.INVISIBLE);
showMarkAsReadFAB();
}
unreadAdapter = new UnreadAdapter(topicSummaries, fragmentInteractionListener); unreadAdapter = new UnreadAdapter(topicSummaries, fragmentInteractionListener);
CustomRecyclerView recyclerView = rootView.findViewById(R.id.list); CustomRecyclerView recyclerView = rootView.findViewById(R.id.list);

Loading…
Cancel
Save