History log of /frameworks/opt/setupwizard/library/full-support/src/com/android/setupwizardlib/view/HeaderRecyclerView.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
21ce0a0684aeb04cbf18e887df84ab9f42432b16 17-Aug-2016 Ajay Nadathur <ajayns@google.com> [SetupWizard] Setup Wizard crash on scrolling the list in Select Wi-Fi
screen

- Setupwizard was crashing because RecyclerView during keyboard scrolls
invokes onCreateViewHolder(ViewGroup, int) for header view more than
once. We return the same headerView object each time which causes
problems later on.
- Fixed the problem by wrapping the header in a framelayout and
inserting the header to the current framelayout in
onBindViewHeader(ViewHolder, int).

Testing:
-------
- Verified by running on Pixel C, no crashes observed
- Also attempted scrolling using touchscreen, works as usual.
bug:30789424
Change-Id: I89ac09e14f21ceec3628f249f2cd2a391f020072
(cherry picked from commit c3a97eece385d93a85a215281ef48bdea728af0b)
/frameworks/opt/setupwizard/library/full-support/src/com/android/setupwizardlib/view/HeaderRecyclerView.java
38a3832bf55aeb5dc24904d4d1ddf391dffa7d7b 19-Dec-2015 Maurice Lam <yukl@google.com> [SuwLib] Add preference integration support

Change-Id: I2e756bcea1512886958ec70c80ae6f4616c9ed81
/frameworks/opt/setupwizard/library/full-support/src/com/android/setupwizardlib/view/HeaderRecyclerView.java
5a4d6cdfb63240c41527ba80b7baddba8933d770 04-Dec-2015 Maurice Lam <yukl@google.com> [SuwLib] GLIF layout adjustment for headers

- Store the list item directly in the view holder and update in
onBindViewHolder, so that the click handler is not prone to adapter
position changes.
- Glif[List/Recycler]Layout now returns the wrapped adapter when
getAdapter is called.
- Disable dividers for header views

Change-Id: Ie782a4de06e2296d4996cb8b81b5d7d3fc834ccf
/frameworks/opt/setupwizard/library/full-support/src/com/android/setupwizardlib/view/HeaderRecyclerView.java
b01f3ef075d501d1f61e6f61794a5cadd3ff2026 21-Nov-2015 Maurice Lam <yukl@google.com> [SuwLib] Implement GlifRecyclerLayout

Bug: 25726515
Change-Id: Ibb60af51928bb5fc828761c55430cc8d31fe5c98
/frameworks/opt/setupwizard/library/full-support/src/com/android/setupwizardlib/view/HeaderRecyclerView.java