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
f1b37e5a
Commit
f1b37e5a
authored
8 years ago
by
Geoffrey Métais
Browse files
Options
Downloads
Patches
Plain Diff
Update mediagroup item to display thumb
(cherry picked from commit
6170c96f
)
parent
75189540
No related branches found
Branches containing commit
Tags
2.2.1-pre1
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/video/VideoGridFragment.java
+14
-0
14 additions, 0 deletions
...oid/src/org/videolan/vlc/gui/video/VideoGridFragment.java
with
14 additions
and
0 deletions
vlc-android/src/org/videolan/vlc/gui/video/VideoGridFragment.java
+
14
−
0
View file @
f1b37e5a
...
...
@@ -469,6 +469,20 @@ public class VideoGridFragment extends MediaBrowserFragment implements ISortable
public
void
setItemToUpdate
(
MediaWrapper
item
)
{
if
(
mVideoAdapter
.
contains
(
item
))
mHandler
.
sendMessage
(
mHandler
.
obtainMessage
(
MediaLibrary
.
UPDATE_ITEM
,
item
));
else
// Update group item when its first element is updated
for
(
int
i
=
0
;
i
<
mVideoAdapter
.
getItemCount
();
++
i
)
{
if
(
mVideoAdapter
.
getItem
(
i
)
instanceof
MediaGroup
&&
((
MediaGroup
)
mVideoAdapter
.
getItem
(
i
)).
getFirstMedia
().
equals
(
item
))
{
final
int
position
=
i
;
mHandler
.
post
(
new
Runnable
()
{
@Override
public
void
run
()
{
mVideoAdapter
.
notifyItemChanged
(
position
);
}
});
return
;
}
}
}
public
void
setGroup
(
String
prefix
)
{
...
...
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