diff options
author | Scott Jackson <daneren2005@gmail.com> | 2014-07-03 10:11:55 -0700 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2014-07-03 10:11:55 -0700 |
commit | 48b472cbdb5756d478c3593c735b9249eb45b2be (patch) | |
tree | beb6cf9c89e50676ab5a30c446333214f9192896 /src/github | |
parent | f11af4586d886553f5017621f11a4a873662726a (diff) | |
download | dsub-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.java | 2 |
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) {
|