From c242b009e0626071bf5a4290583852ae2da8dc9f Mon Sep 17 00:00:00 2001 From: Ezerous Date: Thu, 18 Jun 2020 19:30:55 +0300 Subject: [PATCH] UnreadFragment tiny tweak --- .../mthmmy/activities/main/unread/UnreadFragment.java | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/app/src/main/java/gr/thmmy/mthmmy/activities/main/unread/UnreadFragment.java b/app/src/main/java/gr/thmmy/mthmmy/activities/main/unread/UnreadFragment.java index c3088094..f8097a81 100644 --- a/app/src/main/java/gr/thmmy/mthmmy/activities/main/unread/UnreadFragment.java +++ b/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); noUnreadTopicsTextView = rootView.findViewById(R.id.no_unread_topics); 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); CustomRecyclerView recyclerView = rootView.findViewById(R.id.list);