Fixing CarDrawerActivity bug
- PagedListView was only showing 15 items due to default legacy behavior.
Overriding that in CarDrawerActivity.
Bug: 32019250
Change-Id: Ie77ad706d13574b7fd2b8ee542b8087019d02689
Test: Manually in KitchenSink
diff --git a/car-stream-ui-lib/src/com/android/car/app/CarDrawerActivity.java b/car-stream-ui-lib/src/com/android/car/app/CarDrawerActivity.java
index 8812c42..1d90c17 100644
--- a/car-stream-ui-lib/src/com/android/car/app/CarDrawerActivity.java
+++ b/car-stream-ui-lib/src/com/android/car/app/CarDrawerActivity.java
@@ -78,6 +78,8 @@
mDrawerLayout = (DrawerLayout)findViewById(R.id.drawer_layout);
mDrawerContent = findViewById(R.id.drawer_content);
mDrawerList = (PagedListView)findViewById(R.id.drawer_list);
+ // Let drawer list show unlimited pages of items.
+ mDrawerList.setMaxPages(PagedListView.ItemCap.UNLIMITED);
mProgressBar = (ProgressBar)findViewById(R.id.drawer_progress);
mToolbar = (Toolbar) findViewById(R.id.main_toolbar);