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
3ed359bd
Commit
3ed359bd
authored
7 years ago
by
Geoffrey Métais
Browse files
Options
Downloads
Patches
Plain Diff
Catch exception in case bitmap fails to parcelize
(cherry picked from commit
85aac906
)
parent
54828d7f
No related branches found
Branches containing commit
No related tags found
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/PlaybackService.java
+12
-11
12 additions, 11 deletions
vlc-android/src/org/videolan/vlc/PlaybackService.java
with
12 additions
and
11 deletions
vlc-android/src/org/videolan/vlc/PlaybackService.java
+
12
−
11
View file @
3ed359bd
...
...
@@ -2689,21 +2689,22 @@ public class PlaybackService extends MediaBrowserServiceCompat implements IVLCVo
registerMedialibrary
(
new
Runnable
()
{
@Override
public
void
run
()
{
VLCApplication
.
runBackground
(
new
Runnable
()
{
@Override
public
void
run
()
{
result
.
sendResult
(
BrowserProvider
.
browse
(
parentId
));
}
});
sendResults
(
result
,
parentId
);
}
});
else
VLCApplication
.
runBackground
(
new
Runnable
()
{
@Override
public
void
run
()
{
sendResults
(
result
,
parentId
);
}
private
void
sendResults
(
@NonNull
final
MediaBrowserServiceCompat
.
Result
result
,
@NonNull
final
String
parentId
)
{
VLCApplication
.
runBackground
(
new
Runnable
()
{
@Override
public
void
run
()
{
try
{
result
.
sendResult
(
BrowserProvider
.
browse
(
parentId
));
}
});
}
catch
(
RuntimeException
ignored
)
{}
//bitmap parcelization can fail
}
});
}
private
class
MedialibraryReceiver
extends
BroadcastReceiver
{
...
...
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