compose: use position as item id for recipients
This commit is contained in:
parent
96b7122782
commit
57a3eccc0e
2 changed files with 2 additions and 5 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue