|
@ -10,6 +10,7 @@ import android.widget.TextView; |
|
|
import android.widget.Toast; |
|
|
import android.widget.Toast; |
|
|
|
|
|
|
|
|
import androidx.annotation.NonNull; |
|
|
import androidx.annotation.NonNull; |
|
|
|
|
|
import androidx.annotation.Nullable; |
|
|
import androidx.appcompat.app.AlertDialog; |
|
|
import androidx.appcompat.app.AlertDialog; |
|
|
import androidx.coordinatorlayout.widget.CoordinatorLayout; |
|
|
import androidx.coordinatorlayout.widget.CoordinatorLayout; |
|
|
import androidx.recyclerview.widget.DividerItemDecoration; |
|
|
import androidx.recyclerview.widget.DividerItemDecoration; |
|
@ -91,8 +92,8 @@ public class UnreadFragment extends BaseFragment { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
public void onActivityCreated(Bundle savedInstanceState) { |
|
|
public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) { |
|
|
super.onActivityCreated(savedInstanceState); |
|
|
super.onViewCreated(view, savedInstanceState); |
|
|
if (topicSummaries.isEmpty()) { |
|
|
if (topicSummaries.isEmpty()) { |
|
|
hideMarkAsReadFAB(); |
|
|
hideMarkAsReadFAB(); |
|
|
unreadTask = new UnreadTask(this::onUnreadTaskStarted, UnreadFragment.this::onUnreadTaskCancelled, this::onUnreadTaskFinished); |
|
|
unreadTask = new UnreadTask(this::onUnreadTaskStarted, UnreadFragment.this::onUnreadTaskCancelled, this::onUnreadTaskFinished); |
|
@ -104,7 +105,6 @@ public class UnreadFragment extends BaseFragment { |
|
|
markAsReadTask = new MarkAsReadTask(UnreadFragment.this::onMarkAsReadTaskStarted, UnreadFragment.this::onMarkAsReadTaskFinished); |
|
|
markAsReadTask = new MarkAsReadTask(UnreadFragment.this::onMarkAsReadTaskStarted, UnreadFragment.this::onMarkAsReadTaskFinished); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container, |
|
|
public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container, |
|
|
Bundle savedInstanceState) { |
|
|
Bundle savedInstanceState) { |
|
|