fix IndexOutOfBoundsException in ViewThreadFragment

main
Conny Duck 7 years ago
parent 3feaac1d32
commit 13ed14efec
  1. 2
      app/src/main/java/com/keylesspalace/tusky/fragment/ViewThreadFragment.java

@ -482,7 +482,7 @@ public class ViewThreadFragment extends SFragment implements
private void showCard(Card card) {
this.card = card;
if (statuses.size() != 0) {
if (statusIndex >= 0 && statusIndex < statuses.size()) {
StatusViewData.Concrete newViewData =
new StatusViewData.Builder(statuses.getPairedItem(statusIndex))
.setCard(card)

Loading…
Cancel
Save