Commit c3a97eec authored by Ajay Nadathur's avatar Ajay Nadathur
Browse files

[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
parent 64f2ad2e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment