summaryrefslogtreecommitdiffstats
path: root/src/com/android/fmradio/FmService.java
diff options
context:
space:
mode:
authorBenson Huang <benson.huang@mediatek.com>2014-12-22 11:09:27 +0800
committerLeo Wang <leozwang@google.com>2014-12-23 21:23:08 +0000
commit3dfd9a996a7d065a95fcee47e698c96163208e2c (patch)
treedc1938104ef581153fe4203105c5d01a86d0cf2c /src/com/android/fmradio/FmService.java
parent57c1518c4908d8b796e1aea8abd8c5aef508a0d0 (diff)
downloadandroid_packages_apps_FMRadio-3dfd9a996a7d065a95fcee47e698c96163208e2c.tar.gz
android_packages_apps_FMRadio-3dfd9a996a7d065a95fcee47e698c96163208e2c.tar.bz2
android_packages_apps_FMRadio-3dfd9a996a7d065a95fcee47e698c96163208e2c.zip
[FM] FM will not resume playing after replugging in headphones
Launch FM and play -> Tap more button and select "Start recording" -> Plug out headphones while recording -> Plug in headphones and check the audio -> Tap "Save" button and check the audio -> Tap play button and check the audio, FM can not resume playing after step 4(5 and 6). The fix is to add FmRecordActivity foreground control. Bug 18794870 https://partner-android-review.git.corp.google.com/#/c/189795/ Change-Id: I565c641413836f34c88e2643afd9972f198177da Signed-off-by: Benson Huang <benson.huang@mediatek.com>
Diffstat (limited to 'src/com/android/fmradio/FmService.java')
-rw-r--r--src/com/android/fmradio/FmService.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/com/android/fmradio/FmService.java b/src/com/android/fmradio/FmService.java
index 86ddba7..d9ac99e 100644
--- a/src/com/android/fmradio/FmService.java
+++ b/src/com/android/fmradio/FmService.java
@@ -165,9 +165,9 @@ public class FmService extends Service implements FmRecorder.OnRecorderStateChan
// FmMainActivity foreground
private boolean mIsFmMainForeground = true;
// FmFavoriteActivity foreground
- private boolean mIsFmFavoriteForground = false;
+ private boolean mIsFmFavoriteForeground = false;
// FmRecordActivity foreground
- private boolean mIsFmRecordForground = false;
+ private boolean mIsFmRecordForeground = false;
// Instance variables
private Context mContext = null;
private AudioManager mAudioManager = null;
@@ -2465,7 +2465,7 @@ public class FmService extends Service implements FmRecorder.OnRecorderStateChan
* check FM is foreground or background
*/
public boolean isActivityForeground() {
- return (mIsFmMainForeground || mIsFmFavoriteForground || mIsFmRecordForground);
+ return (mIsFmMainForeground || mIsFmFavoriteForeground || mIsFmRecordForeground);
}
/**
@@ -2481,7 +2481,7 @@ public class FmService extends Service implements FmRecorder.OnRecorderStateChan
* @param isForeground
*/
public void setFmFavoriteForeground(boolean isForeground) {
- mIsFmFavoriteForground = isForeground;
+ mIsFmFavoriteForeground = isForeground;
}
/**
@@ -2489,7 +2489,7 @@ public class FmService extends Service implements FmRecorder.OnRecorderStateChan
* @param isForeground
*/
public void setFmRecordActivityForeground(boolean isForeground) {
- mIsFmRecordForground = isForeground;
+ mIsFmRecordForeground = isForeground;
}
/**