Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a2144634 authored by Brian Attwell's avatar Brian Attwell
Browse files

Allow last item in contact-picker to be selected

Bug: 16871962
Change-Id: I61f650499eeaea14f9ddc20a352d64f8b0dee354
parent fff7ad26
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -80,6 +80,17 @@ public class HeaderEntryContactListAdapter extends DefaultContactListAdapter {
        return super.getItem(position - getHeaderEntryCount());
    }

    @Override
    public boolean isEnabled(int position) {
        return position < getHeaderEntryCount() || super
                .isEnabled(position - getHeaderEntryCount());
    }

    @Override
    public int getPartitionForPosition(int position) {
        return super.getPartitionForPosition(position - getHeaderEntryCount());
    }

    @Override
    protected void bindView(View itemView, int partition, Cursor cursor, int position) {
        super.bindView(itemView, partition, cursor, position + getHeaderEntryCount());