History log of /frameworks/base/core/java/android/widget/HeaderViewListAdapter.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
478a745e8421497bad9ea0cbd75bc4d4d419ef60 24-Mar-2010 Gilles Debunne <debunne@google.com> null header and footer allowed in HeaderViewListAdapter.

The view infos should never be null since they are created by ListView, which is
the natural and only use of this class.
However, some tests in CTS pass null pointers. Replace null by a static empty list.

http://b/issue?id=2527753

Change-Id: I9b92fa018c89007f12be899285f75130b2c8ac40
/frameworks/base/core/java/android/widget/HeaderViewListAdapter.java
34783aac261f55ba1fbc2ccb60fd0bdb12fdf52a 24-Mar-2010 Gilles Debunne <debunne@google.com> Fixes for HeaderViewListAdapter.

Null header and footer, as used by CTS tests, were no longer supported.
Added a static empty list to avoid repetitive null tests in that case.
Fixed getItem/getItemId/getView to handle corner cases.
Changed ListAdapter isEnabled documentation for invalid positions.

http://b/issue?id=2527753
Change-Id: I55e5bf21cb0673d906caa7c669987a6ae869d90f
/frameworks/base/core/java/android/widget/HeaderViewListAdapter.java
176f9fc215194411cf0461a178d77fa57486112b 02-Mar-2010 Gilles Debunne <debunne@google.com> Null pointer tests removed from HeaderViewListAdapter.

The mHeaderViewInfos and mFooterViewInfos lists were sometimes tested for nullity
and sometimes not. Should these values be null, some conditionnal code was actually
flawed in getView() and getItem() because of too strong 'and' conditionnals.

These lists are created upon declaration in ListView and are then shared and hence
cannot be null. Null tests were hence removed. getView() and getItem() get simpler
and work as before.

Change-Id: I279e482730ce6148a559d15a9863afc8f6b67780
/frameworks/base/core/java/android/widget/HeaderViewListAdapter.java
9066cfe9886ac131c34d59ed0e2d287b0e3c0087 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
/frameworks/base/core/java/android/widget/HeaderViewListAdapter.java
d83a98f4ce9cfa908f5c54bbd70f03eec07e7553 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
/frameworks/base/core/java/android/widget/HeaderViewListAdapter.java
54b6cfa9a9e5b861a9930af873580d6dc20f773c 21-Oct-2008 The Android Open Source Project <initial-contribution@android.com> Initial Contribution
/frameworks/base/core/java/android/widget/HeaderViewListAdapter.java