[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
Loading
Please register or sign in to comment