Skip to content
Snippets Groups Projects
Commit aae2653b authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "Check for audio focus before enabling audio path" into fm.lnx.1.0-dev.1.0

parents dcad956a 70ca6d4f
No related branches found
No related tags found
No related merge requests found
...@@ -506,7 +506,13 @@ public class FMRadioService extends Service ...@@ -506,7 +506,13 @@ public class FMRadioService extends Service
" mA2dpConnected:" + mA2dpConnected + " mA2dpConnected:" + mA2dpConnected +
" isRecordSinking" + isRecordSinking() + " isRecordSinking" + isRecordSinking() +
" mIsFMDeviceLoopbackActive:" + mIsFMDeviceLoopbackActive); " mIsFMDeviceLoopbackActive:" + mIsFMDeviceLoopbackActive);
if (enable) { if (enable) {
if (mStoppedOnFocusLoss == true) {
Log.d(LOGTAG, "FM does not have audio focus, not enabling " +
"audio path");
return;
}
// stop existing playback path before starting new one // stop existing playback path before starting new one
if (mA2dpConnected && mIsFMDeviceLoopbackActive) { if (mA2dpConnected && mIsFMDeviceLoopbackActive) {
// on BT but earlier device loopback is active // on BT but earlier device loopback is active
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment