Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Ewout ter Hoeven
VLC-Android
Commits
1945d5cd
Commit
1945d5cd
authored
Jun 21, 2012
by
Sébastien Toque
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
don't handle call headset button during phone calls, leave it to android
parent
2c9438d3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
vlc-android/src/org/videolan/vlc/AudioService.java
vlc-android/src/org/videolan/vlc/AudioService.java
+4
-1
No files found.
vlc-android/src/org/videolan/vlc/AudioService.java
View file @
1945d5cd
...
...
@@ -52,6 +52,7 @@ import android.os.Message;
import
android.os.RemoteException
;
import
android.os.SystemClock
;
import
android.provider.MediaStore
;
import
android.telephony.TelephonyManager
;
import
android.util.Log
;
import
android.view.KeyEvent
;
import
android.widget.RemoteViews
;
...
...
@@ -162,7 +163,9 @@ public class AudioService extends Service {
*/
else
if
(
action
.
equalsIgnoreCase
(
Intent
.
ACTION_MEDIA_BUTTON
))
{
KeyEvent
event
=
(
KeyEvent
)
intent
.
getParcelableExtra
(
Intent
.
EXTRA_KEY_EVENT
);
if
(
mCurrentMedia
==
null
||
event
==
null
)
TelephonyManager
telManager
=
(
TelephonyManager
)
getSystemService
(
Context
.
TELEPHONY_SERVICE
);
if
(
mCurrentMedia
==
null
||
event
==
null
||
telManager
.
getCallState
()
!=
TelephonyManager
.
CALL_STATE_IDLE
)
return
;
switch
(
event
.
getKeyCode
())
...
...
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