From a7ca15ba720681947dd3ed8507941e89db7c042a Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Wed, 9 Jul 2014 08:31:17 -0700 Subject: Only resume playing if still in PAUSED_TEMP state If during the call, the audio_noisy broadcast is received, don't want to resume playing since it will then be in the PAUSED state. --- .../daneren2005/dsub/service/DownloadServiceLifecycleSupport.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/github/daneren2005/dsub/service/DownloadServiceLifecycleSupport.java b/src/github/daneren2005/dsub/service/DownloadServiceLifecycleSupport.java index 76c9abeb..18502846 100644 --- a/src/github/daneren2005/dsub/service/DownloadServiceLifecycleSupport.java +++ b/src/github/daneren2005/dsub/service/DownloadServiceLifecycleSupport.java @@ -332,7 +332,9 @@ public class DownloadServiceLifecycleSupport { case TelephonyManager.CALL_STATE_IDLE: if (resumeAfterCall) { resumeAfterCall = false; - downloadService.start(); + if(downloadService.getPlayerState() == PlayerState.PAUSED_TEMP) { + downloadService.start(); + } } break; default: -- cgit v1.2.3