Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VLC-Android
Manage
Activity
Members
Labels
Plan
Issues
531
Issue boards
Milestones
Wiki
Code
Merge requests
13
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VideoLAN
VLC-Android
Commits
0eaddc8e
Commit
0eaddc8e
authored
2 years ago
by
wuheng
Committed by
hengwu0
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix the PopupMenu on TV browser
parent
13bb68a6
No related branches found
No related tags found
1 merge request
!1464
Fix the PopupMenu on TV browser
Pipeline
#247732
passed with stage
in 23 minutes and 2 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
application/television/src/main/java/org/videolan/television/ui/browser/BaseBrowserTvFragment.kt
+2
-2
2 additions, 2 deletions
...g/videolan/television/ui/browser/BaseBrowserTvFragment.kt
with
2 additions
and
2 deletions
application/television/src/main/java/org/videolan/television/ui/browser/BaseBrowserTvFragment.kt
+
2
−
2
View file @
0eaddc8e
...
...
@@ -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
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment