Skip to content
Snippets Groups Projects
Commit a3f461f1 authored by Mingbo Zhang's avatar Mingbo Zhang Committed by Linux Build Service Account
Browse files

Fix: fm can't pause when media pause cmd received

Whether a2dp is disconnected or not,
fm should pause when fm service receives
intent "com.android.music.musicservicecommand".

CRs-Fixed: 997126
Change-Id: Id50a12f067a16455e5f1b473bcc50cc7d31f2633
parent 3f8b4024
No related branches found
No related tags found
No related merge requests found
...@@ -732,11 +732,6 @@ public class FMRadioService extends Service ...@@ -732,11 +732,6 @@ public class FMRadioService extends Service
String cmd = intent.getStringExtra("command"); String cmd = intent.getStringExtra("command");
Log.d(LOGTAG, "Music Service command : "+cmd+ " received"); Log.d(LOGTAG, "Music Service command : "+cmd+ " received");
if (cmd != null && cmd.equals("pause")) { if (cmd != null && cmd.equals("pause")) {
if (mA2dpDisconnected) {
Log.d(LOGTAG, "not to pause,this is a2dp disconnected's pause");
mA2dpDisconnected = false;
return;
}
if (isFmOn()) { if (isFmOn()) {
fmOperationsOff(); fmOperationsOff();
mStoppedOnFocusLoss = true; mStoppedOnFocusLoss = true;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment