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
12
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
b3abe52d
Commit
b3abe52d
authored
7 years ago
by
Geoffrey Métais
Browse files
Options
Downloads
Patches
Plain Diff
Hide context menu button for playlists in dialogs
Close
#407
(cherry picked from commit
a6ded1d6
)
parent
5dc0c03c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserAdapter.java
+6
-3
6 additions, 3 deletions
...d/src/org/videolan/vlc/gui/audio/AudioBrowserAdapter.java
with
6 additions
and
3 deletions
vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserAdapter.java
+
6
−
3
View file @
b3abe52d
...
...
@@ -57,6 +57,7 @@ import java.util.LinkedList;
import
java.util.List
;
import
static
org
.
videolan
.
medialibrary
.
media
.
MediaLibraryItem
.
FLAG_SELECTED
;
import
static
org
.
videolan
.
medialibrary
.
media
.
MediaLibraryItem
.
TYPE_PLAYLIST
;
public
class
AudioBrowserAdapter
extends
SortableAdapter
<
MediaLibraryItem
,
AudioBrowserAdapter
.
ViewHolder
>
implements
FastScroller
.
SeparatedAdapter
,
Filterable
{
...
...
@@ -96,10 +97,12 @@ public class AudioBrowserAdapter extends SortableAdapter<MediaLibraryItem, Audio
public
ViewHolder
onCreateViewHolder
(
ViewGroup
parent
,
int
viewType
)
{
LayoutInflater
inflater
=
(
LayoutInflater
)
parent
.
getContext
().
getSystemService
(
Context
.
LAYOUT_INFLATER_SERVICE
);
if
(
viewType
==
MediaLibraryItem
.
TYPE_DUMMY
)
{
AudioBrowserSeparatorBinding
binding
=
AudioBrowserSeparatorBinding
.
inflate
(
inflater
,
parent
,
false
);
return
new
ViewHolder
(
binding
);
final
AudioBrowserSeparatorBinding
binding
=
AudioBrowserSeparatorBinding
.
inflate
(
inflater
,
parent
,
false
);
return
new
ViewHolder
<>
(
binding
);
}
else
{
AudioBrowserItemBinding
binding
=
AudioBrowserItemBinding
.
inflate
(
inflater
,
parent
,
false
);
final
AudioBrowserItemBinding
binding
=
AudioBrowserItemBinding
.
inflate
(
inflater
,
parent
,
false
);
if
(
mType
==
TYPE_PLAYLIST
&&
!
mMakeSections
)
// Hide context button for playlist in save playlist dialog
binding
.
itemMore
.
setVisibility
(
View
.
GONE
);
return
new
MediaItemViewHolder
(
binding
);
}
}
...
...
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