Commit 580965fc authored by Thomas Guillem's avatar Thomas Guillem
Browse files

AudioService: don't pause video on incoming telephone call

This fixes a mismatch between audioservice focus on videoplayer focus.
parent d1cc04a3
......@@ -365,8 +365,8 @@ public class AudioService extends Service {
* Incoming Call : Pause if VLC is playing audio or video.
*/
if (action.equalsIgnoreCase(VLCApplication.INCOMING_CALL_INTENT)) {
mWasPlayingAudio = mLibVLC.isPlaying() && mLibVLC.getVideoTracksCount() < 1;
if (mLibVLC.isPlaying())
mWasPlayingAudio = mLibVLC.isPlaying() && hasCurrentMedia();
if (mWasPlayingAudio)
pause();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment