[FM] The channel name will not disappear on the main screen after deleting a channel from the Favorites
Enter FM radio -> Tap star icon to add the channel in
the Favorites -> Rename the channel -> Tap star icon
to delete a channel from the Favorites -> Check the name
on the main screen, the channel name will not disappear.
The CL is to fix the issue that gjalan reproduced.
Bug 18847141
Review: https://partner-android-review.git.corp.google.com/#/c/192521
Signed-off-by: Benson Huang <benson.huang@mediatek.com>
Change-Id: Ib5339c1e956981bdbcff74767b5c422d2e4fcf8b
diff --git a/src/com/android/fmradio/FmMainActivity.java b/src/com/android/fmradio/FmMainActivity.java
index a4ce339..1fc6f47 100644
--- a/src/com/android/fmradio/FmMainActivity.java
+++ b/src/com/android/fmradio/FmMainActivity.java
@@ -454,6 +454,7 @@
mButtonAddToFavorite.setImageResource(R.drawable.btn_fm_favorite_off_selector);
// Notify scroller
mScroller.onRemoveFavorite();
+ mTextStationName.setText(FmStation.getStationName(mContext, mCurrentStation));
} else {
// Add the station to favorite
if (FmStation.isStationExist(mContext, mCurrentStation)) {