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

Commit 975ae5c9 authored by Wenbo Jie's avatar Wenbo Jie
Browse files

[DocsUI M3] Convert ListView to RecyclerView for nav roots

Convert the navigation tree from ListView to RecyclerView in order
to fix the tab cycle problem:
* Create an interface to abstarct all list/adapter operations.
* Implement the interface for both ListView and RecyclerView.
* The RootsFragment can rely on the abstract interface and no need
  to care about the underlying implementations, avoid if/else
  everywhere.

There's no new functionalities added, we just rely on the existing
tests.

Check the attached bug for demo.

Bug: 370628223
Test: atest DocumentsUIGoogleTests:com.android.documentsui.sidebar.RootsFragmentTest
Test: atest DocumentsUIGoogleTests:com.android.documentsui.SidebarUiTest
Test: atest DocumentsUIGoogleTests:com.android.documentsui.NavRailUiTest
Test: atest DocumentsUIGoogleTests:com.android.documentsui.NavRailUiTest
Test: atest DocumentsUIGoogleTests:com.android.documentsui.KeyboardNavigationUiTest
Test: atest DocumentsUIGoogleTests:com.android.documentsui.ContextMenuUiTest
Flag: com.android.documentsui.flags.use_material3
Change-Id: I10f8ea9137acd712e4d97ecc65e2d82ea57dbcc6
parent 19b7e106
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment