Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Casanowow Life for love
VLC-Android
Commits
a2c8830f
Commit
a2c8830f
authored
Feb 14, 2012
by
Jean-Baptiste Kempf
Browse files
Avoid a crash in AudioService
parent
cdb05780
Changes
1
Hide whitespace changes
Inline
Side-by-side
vlc-android/src/org/videolan/vlc/android/AudioService.java
View file @
a2c8830f
...
...
@@ -114,6 +114,10 @@ public class AudioService extends Service {
public
void
onReceive
(
Context
context
,
Intent
intent
)
{
String
action
=
intent
.
getAction
();
int
state
=
intent
.
getIntExtra
(
"state"
,
0
);
if
(
mLibVLC
==
null
)
{
Log
.
w
(
TAG
,
"Intent received, but VLC is not loaded, skipping."
);
return
;
}
if
(
action
.
equalsIgnoreCase
(
VLCAppWidgetProvider
.
ACTION_WIDGET_PLAY
))
{
if
(
mLibVLC
.
isPlaying
()
&&
mCurrentMedia
!=
null
)
{
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment