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
13
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
cf2f196f
Commit
cf2f196f
authored
7 years ago
by
Geoffrey Métais
Browse files
Options
Downloads
Patches
Plain Diff
Properly update dataset in video adapter
parent
c5ff66bc
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
vlc-android/src/org/videolan/vlc/gui/video/VideoGridFragment.java
+1
-1
1 addition, 1 deletion
...oid/src/org/videolan/vlc/gui/video/VideoGridFragment.java
vlc-android/src/org/videolan/vlc/gui/video/VideoListAdapter.java
+1
-7
1 addition, 7 deletions
...roid/src/org/videolan/vlc/gui/video/VideoListAdapter.java
with
2 additions
and
8 deletions
vlc-android/src/org/videolan/vlc/gui/video/VideoGridFragment.java
+
1
−
1
View file @
cf2f196f
...
...
@@ -144,7 +144,7 @@ public class VideoGridFragment extends SortableFragment<VideoListAdapter> implem
if
(
savedInstanceState
!=
null
)
{
final
List
<
MediaWrapper
>
list
=
(
List
<
MediaWrapper
>)
VLCApplication
.
getData
(
"list"
+
getTitle
());
if
(!
Util
.
isListEmpty
(
list
))
mAdapter
.
setList
(
list
);
mAdapter
.
update
(
list
);
}
mGridView
.
setAdapter
(
mAdapter
);
}
...
...
This diff is collapsed.
Click to expand it.
vlc-android/src/org/videolan/vlc/gui/video/VideoListAdapter.java
+
1
−
7
View file @
cf2f196f
...
...
@@ -170,12 +170,6 @@ public class VideoListAdapter extends SortableAdapter<MediaWrapper, VideoListAda
return
position
;
}
@MainThread
public
void
setList
(
List
<
MediaWrapper
>
items
)
{
setDataset
(
items
);
mOriginalData
=
null
;
}
public
boolean
contains
(
MediaWrapper
mw
)
{
return
getDataset
().
indexOf
(
mw
)
!=
-
1
;
}
...
...
@@ -216,7 +210,7 @@ public class VideoListAdapter extends SortableAdapter<MediaWrapper, VideoListAda
@MainThread
public
void
clear
()
{
getDataset
().
clear
(
);
update
(
new
ArrayList
<
MediaWrapper
>()
);
mOriginalData
=
null
;
}
...
...
This diff is collapsed.
Click to expand it.
Geoffrey Métais
@Dekans
mentioned in commit
3f983184
·
7 years ago
mentioned in commit
3f983184
mentioned in commit 3f983184cedf3a52697b831deb109a90bb165752
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