Fix #385 - crash with scheduled messages

This commit is contained in:
Thomas 2022-10-30 17:30:22 +01:00
parent 1e74ee172e
commit 365179def8
1 changed files with 1 additions and 1 deletions

View File

@ -84,8 +84,8 @@ public class FragmentScheduled extends Fragment implements StatusScheduledAdapte
try {
List<StatusDraft> scheduledDrafts = new StatusDraft(requireActivity()).geStatusDraftScheduledList(currentAccount);
Handler mainHandler = new Handler(Looper.getMainLooper());
binding.loader.setVisibility(View.GONE);
Runnable myRunnable = () -> {
binding.loader.setVisibility(View.GONE);
if (scheduledDrafts != null && scheduledDrafts.size() > 0) {
StatusScheduledAdapter statusScheduledAdapter = new StatusScheduledAdapter(null, scheduledDrafts, null);
statusScheduledAdapter.scheduledActions = FragmentScheduled.this;