am d22cf7bd: Merge "DO NOT MERGE ListView eill always show dividers below items if all items in the adapter are enabled." into ics-mr1

* commit 'd22cf7bda7018f7040d21b0ea5c81ca8af038fc8':
  DO NOT MERGE ListView eill always show dividers below items if all items in the adapter are enabled.
This commit is contained in:
Mindy Pereira 2011-11-18 12:16:27 -08:00 committed by Android Git Automerger
commit 7b83ed5d9c

View File

@ -191,6 +191,13 @@ class MailboxFragmentAdapter extends CursorAdapter {
return !isHeader(position); return !isHeader(position);
} }
// The LabelList has headers which are not
// enabled.
@Override
public boolean areAllItemsEnabled() {
return false;
}
@Override @Override
public void bindView(View view, Context context, Cursor cursor) { public void bindView(View view, Context context, Cursor cursor) {
if (view instanceof MailboxListItem) { if (view instanceof MailboxListItem) {