Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VLC-Android
Manage
Activity
Members
Labels
Plan
Issues
529
Issue boards
Milestones
Wiki
Code
Merge requests
15
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
a5e1c775
Commit
a5e1c775
authored
5 years ago
by
Nicolas Pomepuy
Browse files
Options
Downloads
Patches
Plain Diff
Fix history screen not searchable
Fixes
#947
(cherry picked from commit
5ad9172e
)
parent
0390b2fc
No related branches found
No related tags found
1 merge request
!226
Backport for 3.2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
vlc-android/src/org/videolan/vlc/gui/HistoryFragment.kt
+1
-6
1 addition, 6 deletions
vlc-android/src/org/videolan/vlc/gui/HistoryFragment.kt
with
1 addition
and
6 deletions
vlc-android/src/org/videolan/vlc/gui/HistoryFragment.kt
+
1
−
6
View file @
a5e1c775
...
...
@@ -69,7 +69,7 @@ class HistoryFragment : MediaBrowserFragment<HistoryModel>(), IRefreshable, IHis
historyAdapter
.
update
(
it
)
updateEmptyView
()
if
(
::
cleanMenuItem
.
isInitialized
)
{
cleanMenuItem
.
isVisible
=
!
is
Empty
()
cleanMenuItem
.
isVisible
=
list
.
isNot
Empty
()
}
}
})
...
...
@@ -101,13 +101,8 @@ class HistoryFragment : MediaBrowserFragment<HistoryModel>(), IRefreshable, IHis
override
fun
onCreateOptionsMenu
(
menu
:
Menu
,
inflater
:
MenuInflater
)
{
inflater
.
inflate
(
R
.
menu
.
fragment_option_history
,
menu
)
super
.
onCreateOptionsMenu
(
menu
,
inflater
)
activity
?.
invalidateOptionsMenu
()
}
override
fun
onPrepareOptionsMenu
(
menu
:
Menu
)
{
cleanMenuItem
=
menu
.
findItem
(
R
.
id
.
ml_menu_clean
)
cleanMenuItem
.
isVisible
=
!
isEmpty
()
super
.
onPrepareOptionsMenu
(
menu
)
}
override
fun
onOptionsItemSelected
(
item
:
MenuItem
):
Boolean
{
...
...
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