From 7576dc8bee2aee958a29b45da27fe45a42b52700 Mon Sep 17 00:00:00 2001 From: Thomas Date: Sat, 3 Dec 2022 14:49:01 +0100 Subject: [PATCH] Fix issue #577 --- .../main/java/app/fedilab/android/ui/drawer/StatusAdapter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/app/fedilab/android/ui/drawer/StatusAdapter.java b/app/src/main/java/app/fedilab/android/ui/drawer/StatusAdapter.java index 6e4fba990..b4cbe554c 100644 --- a/app/src/main/java/app/fedilab/android/ui/drawer/StatusAdapter.java +++ b/app/src/main/java/app/fedilab/android/ui/drawer/StatusAdapter.java @@ -622,7 +622,7 @@ public class StatusAdapter extends RecyclerView.Adapter searchVM.search(BaseMainActivity.currentInstance, BaseMainActivity.currentToken, statusToDeal.uri, null, "statuses", false, true, false, 0, null, null, 1) .observe((LifecycleOwner) context, results -> { if (results != null && results.statuses != null && results.statuses.size() > 0) { - Status fetchedStatus = statusList.get(0); + Status fetchedStatus = results.statuses.get(0); statusesVM.bookmark(BaseMainActivity.currentInstance, BaseMainActivity.currentToken, fetchedStatus.id) .observe((LifecycleOwner) context, _status -> manageAction(context, adapter, holder, CrossActionHelper.TypeOfCrossAction.BOOKMARK_ACTION, statusToDeal, _status, true)); } else {