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

Commit 63f96896 authored by Marco Nelissen's avatar Marco Nelissen
Browse files

Revert recently added check to addFooterView

b/4319206

Change-Id: Ic89b2166bdc7a878ae2983d393a1d01aaa3b7d23
parent 7454253d
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -337,10 +337,10 @@ public class ListView extends AbsListView {
     */
    public void addFooterView(View v, Object data, boolean isSelectable) {

        if (mAdapter != null && ! (mAdapter instanceof HeaderViewListAdapter)) {
            throw new IllegalStateException(
                    "Cannot add footer view to list -- setAdapter has already been called.");
        }
        // NOTE: do not enforce the adapter being null here, since unlike in
        // addHeaderView, it was never enforced here, and so existing apps are
        // relying on being able to add a footer and then calling setAdapter to
        // force creation of the HeaderViewListAdapter wrapper

        FixedViewInfo info = new FixedViewInfo();
        info.view = v;