[Android] Fix the PopupMenu on TV browser
wuheng
git at videolan.org
Mon Aug 1 14:02:58 UTC 2022
vlc-android | branch: master | wuheng <w._heng at 163.com> | Thu Jul 28 14:34:30 2022 +0000| [0eaddc8ef1dda4eef16d3cf6bd0a744e6d5388cf] | committer: hengwu0
Fix the PopupMenu on TV browser
> https://code.videolan.org/videolan/vlc-android/commit/0eaddc8ef1dda4eef16d3cf6bd0a744e6d5388cf
---
.../java/org/videolan/television/ui/browser/BaseBrowserTvFragment.kt | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/application/television/src/main/java/org/videolan/television/ui/browser/BaseBrowserTvFragment.kt b/application/television/src/main/java/org/videolan/television/ui/browser/BaseBrowserTvFragment.kt
index ae59e6c62..1f7b82cfa 100644
--- a/application/television/src/main/java/org/videolan/television/ui/browser/BaseBrowserTvFragment.kt
+++ b/application/television/src/main/java/org/videolan/television/ui/browser/BaseBrowserTvFragment.kt
@@ -332,7 +332,7 @@ abstract class BaseBrowserTvFragment<T> : Fragment(), BrowserFragmentInterface,
val canSortByFileNameName = (viewModel as SortableModel).canSortByFileNameName()
menu.menu.findItem(R.id.ml_menu_sortby_filename).isVisible = canSortByFileNameName
menu.menu.findItem(R.id.ml_menu_sortby_length).isVisible = (viewModel as SortableModel).canSortByDuration()
- menu.menu.findItem(R.id.ml_menu_sortby_date).isVisible = (viewModel as SortableModel).canSortByInsertionDate() || (viewModel as SortableModel).canSortByReleaseDate() || (viewModel as SortableModel).canSortByLastModified()
+ menu.menu.findItem(R.id.ml_menu_sortby_insertion_date).isVisible = (viewModel as SortableModel).canSortByInsertionDate() || (viewModel as SortableModel).canSortByReleaseDate() || (viewModel as SortableModel).canSortByLastModified()
menu.menu.findItem(R.id.ml_menu_sortby_date).isVisible = (viewModel as SortableModel).canSortByReleaseDate()
menu.menu.findItem(R.id.ml_menu_sortby_last_modified).isVisible = (viewModel as SortableModel).canSortByLastModified()
menu.menu.findItem(R.id.ml_menu_sortby_number).isVisible = false
@@ -454,4 +454,4 @@ abstract class BaseBrowserTvFragment<T> : Fragment(), BrowserFragmentInterface,
animationDelegate.setVisibility(binding.headerButton, if (viewModel.provider.headers.isEmpty) View.GONE else View.VISIBLE)
animationDelegate.setVisibility(binding.headerDescription, if (viewModel.provider.headers.isEmpty) View.GONE else View.VISIBLE)
}
-}
\ No newline at end of file
+}
More information about the Android
mailing list