aboutsummaryrefslogtreecommitdiff
path: root/src/github
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2014-07-03 10:11:55 -0700
committerScott Jackson <daneren2005@gmail.com>2014-07-03 10:11:55 -0700
commit48b472cbdb5756d478c3593c735b9249eb45b2be (patch)
treebeb6cf9c89e50676ab5a30c446333214f9192896 /src/github
parentf11af4586d886553f5017621f11a4a873662726a (diff)
downloaddsub-48b472cbdb5756d478c3593c735b9249eb45b2be.tar.gz
dsub-48b472cbdb5756d478c3593c735b9249eb45b2be.tar.bz2
dsub-48b472cbdb5756d478c3593c735b9249eb45b2be.zip
Fix unplugging headphone not pausing when in call
Diffstat (limited to 'src/github')
-rw-r--r--src/github/daneren2005/dsub/receiver/AudioNoisyReceiver.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/github/daneren2005/dsub/receiver/AudioNoisyReceiver.java b/src/github/daneren2005/dsub/receiver/AudioNoisyReceiver.java
index 058d04b4..b4ace297 100644
--- a/src/github/daneren2005/dsub/receiver/AudioNoisyReceiver.java
+++ b/src/github/daneren2005/dsub/receiver/AudioNoisyReceiver.java
@@ -39,7 +39,7 @@ public class AudioNoisyReceiver extends BroadcastReceiver {
}
if (AudioManager.ACTION_AUDIO_BECOMING_NOISY.equals (intent.getAction ())) {
- if(!downloadService.isRemoteEnabled() && downloadService.getPlayerState() == PlayerState.STARTED) {
+ if(!downloadService.isRemoteEnabled() && (downloadService.getPlayerState() == PlayerState.STARTED || downloadService.getPlayerState() == PlayerState.PAUSED_TEMP)) {
SharedPreferences prefs = Util.getPreferences(downloadService);
int pausePref = Integer.parseInt(prefs.getString(Constants.PREFERENCES_KEY_PAUSE_DISCONNECT, "0"));
if(pausePref == 0) {