compose: use position as item id for recipients

This commit is contained in:
Vincent Breitmoser 2015-12-21 00:48:44 +01:00
parent 96b7122782
commit 57a3eccc0e
2 changed files with 2 additions and 5 deletions

View file

@ -66,10 +66,7 @@ public class AlternateRecipientAdapter extends BaseAdapter {
@Override
public long getItemId(int position) {
if (position == 0 || position == 1) {
return currentRecipient.hashCode();
}
return recipients.get(position -2).hashCode();
return position;
}
@Override

View file

@ -49,7 +49,7 @@ public class RecipientAdapter extends BaseAdapter implements Filterable {
@Override
public long getItemId(int position) {
return recipients.get(position).hashCode();
return position;
}
@Override