mirror of
https://github.com/pachli/pachli-android.git
synced 2025-01-13 01:05:35 +01:00
fix IndexOutOfBoundsException in ViewThreadFragment
This commit is contained in:
parent
08d01e6046
commit
b33740d74e
@ -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…
Reference in New Issue
Block a user