summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinux Build Service Account <lnxbuild@localhost>2014-08-26 12:59:04 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2014-08-26 12:59:04 -0700
commitc48bcc407d9d6b353d1a8d7b69212301b69d8687 (patch)
tree6bd2e3c9a1db3e2120aa57287412ce871f093d28
parent4293b818dee0d2ef2797f1a05f3219ca9ed9114b (diff)
parenta62d0c0a0dfe0a74b424c200b69cecb26ea1a169 (diff)
downloadandroid_hardware_qcom_fm-c48bcc407d9d6b353d1a8d7b69212301b69d8687.tar.gz
android_hardware_qcom_fm-c48bcc407d9d6b353d1a8d7b69212301b69d8687.tar.bz2
android_hardware_qcom_fm-c48bcc407d9d6b353d1a8d7b69212301b69d8687.zip
Merge "FM: Fix the issue with sleep timer disappear"
-rw-r--r--fmapp2/src/com/caf/fmradio/FMRadio.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/fmapp2/src/com/caf/fmradio/FMRadio.java b/fmapp2/src/com/caf/fmradio/FMRadio.java
index 2e52959..7a589f2 100644
--- a/fmapp2/src/com/caf/fmradio/FMRadio.java
+++ b/fmapp2/src/com/caf/fmradio/FMRadio.java
@@ -2304,7 +2304,7 @@ public class FMRadio extends Activity
"SleepUpdateThread");
}
/* If the thread state is "new" then the thread has not yet started */
- if(mSleepUpdateHandlerThread.getState() == Thread.State.NEW && isFmOn()) {
+ if(mSleepUpdateHandlerThread.getState() != Thread.State.TERMINATED && isFmOn()) {
try {
if((mService != null) &&
!mService.isSleepTimerActive()) {