summaryrefslogtreecommitdiffstats
path: root/src/com
diff options
context:
space:
mode:
authorBenson Huang <benson.huang@mediatek.com>2015-01-14 10:35:41 +0800
committerleozwang <leozwang@google.com>2015-01-14 11:14:14 -0800
commit59668c1835c800cfb85b30f4fc81bdf4966400d3 (patch)
treed3750847e11cf4c06751807c7a7efe8aca1a78f8 /src/com
parenta1412c7e3bca1c7fae1b772cc13c92099189f8b1 (diff)
downloadandroid_packages_apps_FMRadio-59668c1835c800cfb85b30f4fc81bdf4966400d3.tar.gz
android_packages_apps_FMRadio-59668c1835c800cfb85b30f4fc81bdf4966400d3.tar.bz2
android_packages_apps_FMRadio-59668c1835c800cfb85b30f4fc81bdf4966400d3.zip
[FM] FM icon does not display in the notification bar when FM is playing
FM powered up -> Select "Start Recording" in options menu -> Tap "STOP RECORDING" and "save recording" dialog pops up -> Tap Home key and check FM icon in the status bar, FM icon will not display in the status bar. The fix is to update playing notification when the saving dialog is shown. Bug 19001738 Review: https://partner-android-review.git.corp.google.com/#/c/193404 Signed-off-by: Benson Huang <benson.huang@mediatek.com> Change-Id: I2edd7c548c736cf58b1e8ae13da3c0b4f62ea031
Diffstat (limited to 'src/com')
-rw-r--r--src/com/android/fmradio/FmRecordActivity.java5
1 files changed, 5 insertions, 0 deletions
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 @@ public class FmRecordActivity extends Activity implements
// 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();
}
}