[Android] Fix IllegalStateException due to invalid menu item

Nicolas Pomepuy git at videolan.org
Fri Jun 12 14:09:06 CEST 2020


vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Fri Jun 12 07:29:12 2020 +0200| [f48f441f310cd8adbe5fc256675c385a51a1b731] | committer: Nicolas Pomepuy

Fix IllegalStateException due to invalid menu item

> https://code.videolan.org/videolan/vlc-android/commit/f48f441f310cd8adbe5fc256675c385a51a1b731
---

 .../java/org/videolan/television/ui/browser/BaseBrowserTvFragment.kt     | 1 -
 1 file changed, 1 deletion(-)

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 dd1fee457..753b8e874 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
@@ -314,7 +314,6 @@ abstract class BaseBrowserTvFragment<T> : Fragment(), BrowserFragmentInterface,
         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_date).isVisible = (viewModel as SortableModel).canSortByReleaseDate()
         menu.menu.findItem(R.id.ml_menu_sortby_last_modified).isVisible = (viewModel as SortableModel).canSortByLastModified()
-        menu.menu.findItem(org.videolan.vlc.R.id.ml_menu_sortby_media_number).isVisible = false
         menu.menu.findItem(R.id.ml_menu_sortby_number).isVisible = false
         menu.setOnMenuItemClickListener(this)
         menu.show()



More information about the Android mailing list