From 573751acf4d92bf0fe0757cc0b8a3d7746ad7f58 Mon Sep 17 00:00:00 2001 From: Ezerous Date: Sat, 27 Jun 2020 19:36:25 +0300 Subject: [PATCH] UnreadFragment FAB tiny fix --- .../thmmy/mthmmy/activities/main/unread/UnreadFragment.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 124c35c4..661ed1be 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 @@ -92,10 +92,13 @@ public class UnreadFragment extends BaseFragment { public void onActivityCreated(Bundle savedInstanceState) { super.onActivityCreated(savedInstanceState); if (topicSummaries.isEmpty()){ + hideMarkAsReadFAB(); unreadTask = new UnreadTask(this::onUnreadTaskStarted, UnreadFragment.this::onUnreadTaskCancelled, this::onUnreadTaskFinished); assert SessionManager.unreadUrl != null; unreadTask.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR, SessionManager.unreadUrl.toString()); } + else + showMarkAsReadFAB(); markAsReadTask = new MarkAsReadTask(UnreadFragment.this::onMarkAsReadTaskStarted, UnreadFragment.this::onMarkAsReadTaskFinished); } @@ -129,7 +132,6 @@ public class UnreadFragment extends BaseFragment { this::startUnreadTask ); } - return rootView; }