Revert "Add extra conditions to test HeaderListViewAdapter isEmpty"

This reverts commit 80909fcd8d92499d9e796cd861c79877ce3739de.

This restores the CTS test for HeaderViewListAdapter to match the revert of
patch ef2277ec5 in frameworks/base, which caused a regression in some apps.
diff --git a/tests/tests/widget/src/android/widget/cts/HeaderViewListAdapterTest.java b/tests/tests/widget/src/android/widget/cts/HeaderViewListAdapterTest.java
index 5426ae9..e583dce 100644
--- a/tests/tests/widget/src/android/widget/cts/HeaderViewListAdapterTest.java
+++ b/tests/tests/widget/src/android/widget/cts/HeaderViewListAdapterTest.java
@@ -81,21 +81,6 @@
         HeaderViewFullAdapter fullAdapter = new HeaderViewFullAdapter();
         headerViewListAdapter = new HeaderViewListAdapter(null, null, fullAdapter);
         assertFalse(headerViewListAdapter.isEmpty());
-
-        ListView lv = new ListView(getContext());
-        ArrayList<ListView.FixedViewInfo> header = new ArrayList<ListView.FixedViewInfo>(4);
-        header.add(lv.new FixedViewInfo());
-        headerViewListAdapter = new HeaderViewListAdapter(header, null, null);
-        assertEquals(1, headerViewListAdapter.getHeadersCount());
-        assertFalse(headerViewListAdapter.isEmpty());
-
-        lv = new ListView(getContext());
-        ArrayList<ListView.FixedViewInfo> footer = new ArrayList<ListView.FixedViewInfo>(4);
-        footer.add(lv.new FixedViewInfo());
-        headerViewListAdapter = new HeaderViewListAdapter(null, footer, null);
-        assertEquals(1, headerViewListAdapter.getFootersCount());
-        assertFalse(headerViewListAdapter.isEmpty());
-
     }
 
     public void testRemoveHeader() {