Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
VLC-Android
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
315
Issues
315
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
VideoLAN
VLC-Android
Commits
399b9805
Commit
399b9805
authored
Jun 16, 2016
by
Geoffrey Métais
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Just in time thumbnailer start
parent
c326272b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
10 deletions
+3
-10
vlc-android/src/org/videolan/vlc/gui/video/VideoGridFragment.java
...oid/src/org/videolan/vlc/gui/video/VideoGridFragment.java
+3
-10
No files found.
vlc-android/src/org/videolan/vlc/gui/video/VideoGridFragment.java
View file @
399b9805
...
...
@@ -171,7 +171,7 @@ public class VideoGridFragment extends MediaBrowserFragment implements ISortable
@Override
public
void
onResume
()
{
super
.
onResume
();
if
(
(
getActivity
()
instanceof
MainActivity
)
)
if
(
getActivity
()
instanceof
MainActivity
)
mMainActivity
=
(
MainActivity
)
getActivity
();
mMediaLibrary
.
setBrowser
(
this
);
mMediaLibrary
.
addUpdateHandler
(
mHandler
);
...
...
@@ -190,10 +190,6 @@ public class VideoGridFragment extends MediaBrowserFragment implements ISortable
updateViewMode
();
if
(
animate
)
mAnimator
.
animate
();
/* Start the thumbnailer */
if
(
mThumbnailer
!=
null
)
mThumbnailer
.
start
(
this
);
}
@Override
...
...
@@ -394,11 +390,6 @@ public class VideoGridFragment extends MediaBrowserFragment implements ISortable
mSwipeRefreshLayout
.
setRefreshing
(
true
);
final
List
<
MediaWrapper
>
itemList
=
mMediaLibrary
.
getVideoItems
();
if
(
mThumbnailer
!=
null
)
mThumbnailer
.
clearJobs
();
else
Log
.
w
(
TAG
,
"Can't generate thumbnails, the thumbnailer is missing"
);
if
(
itemList
.
size
()
>
0
)
{
VLCApplication
.
runBackground
(
new
Runnable
()
{
@Override
...
...
@@ -430,6 +421,8 @@ public class VideoGridFragment extends MediaBrowserFragment implements ISortable
}
});
if
(
mThumbnailer
!=
null
&&
!
jobsList
.
isEmpty
())
{
mThumbnailer
.
clearJobs
();
mThumbnailer
.
start
(
VideoGridFragment
.
this
);
for
(
MediaWrapper
item
:
jobsList
)
mThumbnailer
.
addJob
(
item
);
}
...
...
Geoffrey Métais
@Dekans
mentioned in commit
50024c93
·
Jun 16, 2016
mentioned in commit
50024c93
mentioned in commit 50024c936678fa6585b6ad00d467af86156f5219
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment