summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenson Huang <benson.huang@mediatek.com>2014-12-15 11:03:43 +0800
committerleozwang <leozwang@google.com>2014-12-16 15:46:37 -0800
commit9dd97ba8b788592899438fd2c7d4ab88bfe3dccd (patch)
tree1c50fc399784dd930c12cb0abceedae2fb9db455
parent6e47fefd026fe63b8d23dea69034e7f5e4c18f5c (diff)
downloadandroid_packages_apps_FMRadio-9dd97ba8b788592899438fd2c7d4ab88bfe3dccd.tar.gz
android_packages_apps_FMRadio-9dd97ba8b788592899438fd2c7d4ab88bfe3dccd.tar.bz2
android_packages_apps_FMRadio-9dd97ba8b788592899438fd2c7d4ab88bfe3dccd.zip
[FM] Radio text is not updated in notification bar
Launch FM and play a station with program service(PS) and radio text(RT) -> Use siliab tool to rename the PS and RT as null string -> Press home button and pull down notification bar -> Check the FM information in notification bar, radio text is not updated in notification bar. The fix is to let radio text been updated in notifcation bar when radio text is changed. https://partner-android-review.git.corp.google.com/#/c/188806/ Bug 18762405 Change-Id: I77f4ec5cd9459fabfec63f7e236a7bc96cd79f13 Signed-off-by: Benson Huang <benson.huang@mediatek.com>
-rw-r--r--src/com/android/fmradio/FmService.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/com/android/fmradio/FmService.java b/src/com/android/fmradio/FmService.java
index af5eb9b..a736f3d 100644
--- a/src/com/android/fmradio/FmService.java
+++ b/src/com/android/fmradio/FmService.java
@@ -1629,6 +1629,9 @@ public class FmService extends Service implements FmRecorder.OnRecorderStateChan
byte[] byteLRText = FmNative.getLrText();
if (null != byteLRText) {
String rds = new String(byteLRText).trim();
+ if (!mRtTextString.equals(rds)) {
+ updatePlayingNotification();
+ }
setLRText(rds);
ContentValues values = null;
if (FmStation.isStationExist(mContext, mCurrentStation)) {