Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VLC-Android
Manage
Activity
Members
Labels
Plan
Issues
533
Issue boards
Milestones
Wiki
Code
Merge requests
11
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
d28f9d5e
Commit
d28f9d5e
authored
9 years ago
by
Geoffrey Métais
Browse files
Options
Downloads
Patches
Plain Diff
Fix video deletion messing with items positions
parent
545cf70d
No related branches found
No related tags found
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/VideoListAdapter.java
+3
-2
3 additions, 2 deletions
...roid/src/org/videolan/vlc/gui/video/VideoListAdapter.java
with
3 additions
and
2 deletions
vlc-android/src/org/videolan/vlc/gui/video/VideoListAdapter.java
+
3
−
2
View file @
d28f9d5e
...
...
@@ -43,7 +43,6 @@ import org.videolan.vlc.gui.helpers.AsyncImageLoader;
import
org.videolan.vlc.gui.helpers.BitmapCache
;
import
org.videolan.vlc.gui.helpers.BitmapUtil
;
import
org.videolan.vlc.media.MediaGroup
;
import
org.videolan.vlc.media.MediaUtils
;
import
org.videolan.vlc.media.MediaWrapper
;
import
org.videolan.vlc.util.Strings
;
...
...
@@ -220,7 +219,9 @@ public class VideoListAdapter extends RecyclerView.Adapter<VideoListAdapter.View
if
(
position
==
-
1
)
return
;
mVideos
.
remove
(
position
);
notifyItemRemoved
(
position
);
// Remove the whole end of list to update position tags stored in
// items views for databinder interactions, like contextual menu
notifyItemRangeChanged
(
position
,
getItemCount
()-
position
);
}
private
int
getItemPosition
(
MediaWrapper
mw
)
{
...
...
This diff is collapsed.
Click to expand it.
Jean-Baptiste Kempf
@jbk
mentioned in commit
5c7e08c7
·
9 years ago
mentioned in commit
5c7e08c7
mentioned in commit 5c7e08c72ad29ed5147f460e2d58caa7ae53dbb9
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