History log of /frameworks/base/core/java/android/widget/HeaderViewListAdapter.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
bafc8dcf690776ec7fdcf26518f3aff47724871d 13-Jun-2013 Dave Burke <daveburke@google.com> am 34bc73df: Merge "Revert "Make implementation of isEmpty consistent with implementation of getCount in HeaderListViewAdapter"" into jb-mr2-dev

* commit '34bc73dff1f0c8402da3fc9bd1f0175bddcaa842':
Revert "Make implementation of isEmpty consistent with implementation of getCount in HeaderListViewAdapter"
fc93d0c108ff151b543bb682f75bf94e36eaddd7 13-Jun-2013 Adam Powell <adamp@google.com> Revert "Make implementation of isEmpty consistent with implementation of getCount in HeaderListViewAdapter"

This reverts commit ef2277ec5802143b8af1da32d7b01518401b97a9.

This caused a regression for some apps relying on the old behavior.

Bug 9372495
/frameworks/base/core/java/android/widget/HeaderViewListAdapter.java
62b2bb80f6b698571af766dec06100359bf1af7c 30-Apr-2013 Taylor H. Perkins <taylorhp@gmail.com> HeaderViewListAdapter: Correct thrown error names.

When accessing an invalid entry of the list, an IndexOutOfBounds exception is thrown, not an ArrayIndexOutOfBounds exception.

Change-Id: I3cf59faab004fa6391d84f30f280e0c9bd92dc44
Signed-off-by: Taylor H. Perkins <taylorhp@gmail.com>
/frameworks/base/core/java/android/widget/HeaderViewListAdapter.java
ef2277ec5802143b8af1da32d7b01518401b97a9 09-Dec-2012 Emma Sajic <esajic@effectivelateralsolutions.co.uk> Make implementation of isEmpty consistent with implementation of getCount in HeaderListViewAdapter

Fix for Issue ID 18316. Make isEmpty() return false when getCount() returns a non-zero value. So that the list cannot be considered empty when a header or footer is present.

https://code.google.com/p/android/issues/detail?id=18316

Change-Id: Ib69201e9d5ef3efcbb68ea298b8cc8ca6e027246
Signed-off-by: Emma Sajic <esajic@effectivelateralsolutions.co.uk>
/frameworks/base/core/java/android/widget/HeaderViewListAdapter.java
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