diff options
Diffstat (limited to 'fmapp2/src/com/caf/fmradio/FMRadioService.java')
-rw-r--r-- | fmapp2/src/com/caf/fmradio/FMRadioService.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/fmapp2/src/com/caf/fmradio/FMRadioService.java b/fmapp2/src/com/caf/fmradio/FMRadioService.java index 8222281..d79c78f 100644 --- a/fmapp2/src/com/caf/fmradio/FMRadioService.java +++ b/fmapp2/src/com/caf/fmradio/FMRadioService.java @@ -364,6 +364,7 @@ public class FMRadioService extends Service Log.d(LOGTAG, "A2DP device is dis-connected!"); mA2dpDisconnected = true; } else { + Log.d(LOGTAG, "A2DP device is connected!"); mA2dpDisconnected = false; } if (isAnalogModeEnabled()) { @@ -376,8 +377,8 @@ public class FMRadioService extends Service // will take care of audio routing if( (isFmOn()) && (true == ((bA2dpConnected)^(mOverA2DP))) && - (false == mStoppedOnFocusLoss) && - (!isSpeakerEnabled())) { + (false == mStoppedOnFocusLoss)) { + Log.d(LOGTAG, "stopping and starting FM\n"); stopFM(); startFM(); } @@ -764,7 +765,7 @@ public class FMRadioService extends Service mStoppedOnFocusLoss = false; if (!mA2dpDeviceSupportInHal && (true == mA2dpDeviceState.isDeviceAvailable()) && - (!isSpeakerEnabled()) && !isAnalogModeEnabled() + !isAnalogModeEnabled() && (true == startA2dpPlayback())) { mOverA2DP=true; } else { |