Open NobleMathews opened 1 month ago
application/television/src/main/java/org/videolan/television/ui/browser/BaseBrowserTvFragment.kt:319-382 | Contains the sort function and menu setup, critical for addressing the layout change issue on AndroidTV FileBrowser.
application/television/src/main/java/org/videolan/television/ui/browser/FileBrowserTvFragment.kt:50-317 | Provides context for the FileBrowserTvFragment, necessary to understand the layout and interaction with sorting.
To address the unexpected layout change in FileBrowserFragment
after using the sort option, perform the following actions:
Examine the onPrepareOptionsMenu
method in BaseBrowserFragment.kt
to confirm that menu items maintain their visibility consistently before and after sorting.
override fun onPrepareOptionsMenu(menu: Menu) {
super.onPrepareOptionsMenu(menu)
// Check the visibility settings of menu items here
}
Review the sortBy
method in the same file to ensure that the UI elements, particularly the sort options, remain in their intended positions post-sorting.
fun sortBy(sort: Int) {
// Ensure UI elements are correctly managed here
}
Inspect the updateSortTitles
method in UiTools.kt
to verify that it's only modifying the titles and not influencing the layout positioning.
fun updateSortTitles(menu: Menu) {
// Confirm that this method doesn't alter layout
}
When you change the sort used in the browser, the options pass from the top right, to a fab on the bottom left