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
16
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
b659d74a
Commit
b659d74a
authored
7 years ago
by
Geoffrey Métais
Browse files
Options
Downloads
Patches
Plain Diff
Show special browser icons in internal memory dir
parent
57b1a3e2
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/browser/BaseBrowserAdapter.java
+6
-3
6 additions, 3 deletions
.../src/org/videolan/vlc/gui/browser/BaseBrowserAdapter.java
with
6 additions
and
3 deletions
vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserAdapter.java
+
6
−
3
View file @
b659d74a
...
...
@@ -76,13 +76,16 @@ public class BaseBrowserAdapter extends SortableAdapter<MediaLibraryItem, BaseBr
protected
final
BaseBrowserFragment
fragment
;
private
int
mTop
=
0
,
mMediaCount
=
0
,
mSelectionCount
=
0
;
private
ItemFilter
mFilter
=
new
ItemFilter
();
private
final
boolean
mFilesRoot
,
mNetworkRoot
;
private
final
boolean
mFilesRoot
,
mNetworkRoot
,
mSpecialIcons
;
BaseBrowserAdapter
(
BaseBrowserFragment
fragment
)
{
this
.
fragment
=
fragment
;
final
boolean
root
=
fragment
.
isRootDirectory
();
mFilesRoot
=
root
&&
fragment
instanceof
FileBrowserFragment
;
final
boolean
fileBrowser
=
fragment
instanceof
FileBrowserFragment
;
mFilesRoot
=
root
&&
fileBrowser
;
mNetworkRoot
=
root
&&
fragment
instanceof
NetworkBrowserFragment
;
final
String
mrl
=
fragment
.
mMrl
;
mSpecialIcons
=
mFilesRoot
||
fileBrowser
&&
mrl
!=
null
&&
mrl
.
endsWith
(
AndroidDevices
.
EXTERNAL_PUBLIC_DIRECTORY
);
}
@Override
...
...
@@ -122,7 +125,7 @@ public class BaseBrowserAdapter extends SortableAdapter<MediaLibraryItem, BaseBr
vh
.
binding
.
setHasContextMenu
(
true
);
if
(
mNetworkRoot
)
vh
.
binding
.
setProtocol
(
getProtocol
(
media
));
vh
.
binding
.
setCover
(
getIcon
(
media
,
m
FilesRoot
));
vh
.
binding
.
setCover
(
getIcon
(
media
,
m
SpecialIcons
));
vh
.
setContextMenuListener
();
vh
.
selectView
(
media
.
hasStateFlags
(
FLAG_SELECTED
));
}
...
...
This diff is collapsed.
Click to expand it.
Geoffrey Métais
@Dekans
mentioned in commit
ed0cc868
·
7 years ago
mentioned in commit
ed0cc868
mentioned in commit ed0cc8680e42d463d55d732bf5e8c5ac0ddf0e30
Toggle commit list
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