From d419f823653f0b793999360927db8560e753f738 Mon Sep 17 00:00:00 2001 From: Konrad Pozniak Date: Sun, 17 Feb 2019 19:09:30 +0100 Subject: [PATCH] fix crash when opening a thread in the browser (#1053) * fix crash when opening a Thread in the browser * avoid redundant actionableStatus.getActionableId() --- .../main/java/com/keylesspalace/tusky/fragment/SFragment.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/keylesspalace/tusky/fragment/SFragment.java b/app/src/main/java/com/keylesspalace/tusky/fragment/SFragment.java index a523a9f1..8f8d0513 100644 --- a/app/src/main/java/com/keylesspalace/tusky/fragment/SFragment.java +++ b/app/src/main/java/com/keylesspalace/tusky/fragment/SFragment.java @@ -98,7 +98,8 @@ public abstract class SFragment extends BaseFragment { } protected void viewThread(Status status) { - bottomSheetActivity.viewThread(status.getActionableId(), status.getUrl()); + Status actionableStatus = status.getActionableStatus(); + bottomSheetActivity.viewThread(actionableStatus.getId(), actionableStatus.getUrl()); } protected void viewAccount(String accountId) {