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
319
Issues
319
List
Boards
Labels
Service Desk
Milestones
Merge Requests
2
Merge Requests
2
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
50024c93
Commit
50024c93
authored
Jun 16, 2016
by
Geoffrey Métais
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Just in time thumbnailer start
(cherry picked from commit
399b9805
)
parent
178c3541
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 @
50024c93
...
...
@@ -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
);
}
...
...
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