Avoids status refresh if no card

This commit is contained in:
stom79 2017-12-22 14:46:27 +01:00
parent a8d02ba0b1
commit 1874fec5aa
1 changed files with 5 additions and 3 deletions

View File

@ -280,9 +280,11 @@ public class ShowConversationActivity extends BaseActivity implements OnRetrieve
int position = 0; int position = 0;
for(Status status: this.statuses) { for(Status status: this.statuses) {
if( initialStatus.getId().equals(status.getId())) { if( initialStatus.getId().equals(status.getId())) {
this.statuses.get(position).setCard(card); if( card != null) {
initialStatus.setCard(card); this.statuses.get(position).setCard(card);
statusListAdapter.notifyItemChanged(position); initialStatus.setCard(card);
statusListAdapter.notifyItemChanged(position);
}
return; return;
} }
position++; position++;