Fix FS#11676 - audio_status() returns AUDIO_STATUS_PLAY|AUDIO_STATUS_PAUSE if paused so only resume if AUDIO_STATUS_PLAY is the only bit.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28301 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Thomas Martitz 2010-10-17 17:52:35 +00:00
parent 5e2b5bbcfc
commit bd573c47aa

View file

@ -621,7 +621,7 @@ long default_event_handler_ex(long event, void (*callback)(void *), void *parame
#if CONFIG_PLATFORM & PLATFORM_ANDROID
/* stop playback if we receive a call */
case SYS_CALL_INCOMING:
resume = (audio_status() & AUDIO_STATUS_PLAY) != 0;
resume = audio_status() == AUDIO_STATUS_PLAY;
list_stop_handler();
return SYS_CALL_INCOMING;
/* resume playback if needed */