Merge " [FM] Fix 18847131 There is no sound output from BT earphone while BT earphone is connected" into lmp-mr1-dev
diff --git a/src/com/android/fmradio/FmFavoriteActivity.java b/src/com/android/fmradio/FmFavoriteActivity.java
index cdc180b..6abef98 100644
--- a/src/com/android/fmradio/FmFavoriteActivity.java
+++ b/src/com/android/fmradio/FmFavoriteActivity.java
@@ -557,6 +557,7 @@
refreshMenuItem(false);
mLvFavorites.setEmptyView(mSearchTips);
mSearchProgress.setIndeterminate(true);
+ mMyAdapter.swipResult(null);
mService.startScanAsync();
} else {
boolean isScan = mService.isScanning();
diff --git a/src/com/android/fmradio/FmRecordActivity.java b/src/com/android/fmradio/FmRecordActivity.java
index 4df42ec..06e4a8b 100644
--- a/src/com/android/fmradio/FmRecordActivity.java
+++ b/src/com/android/fmradio/FmRecordActivity.java
@@ -251,6 +251,11 @@
// If have stopped recording, need not show notification
if (!isStopRecording()) {
mHandler.sendEmptyMessage(MSG_UPDATE_NOTIFICATION);
+ } else if (isSaveDialogShown()) {
+ // Only when save dialog is shown and FM radio is back to background,
+ // it is necessary to update playing notification.
+ // Otherwise, FmMainActivity will update playing notification.
+ mService.updatePlayingNotification();
}
}