Merge "FM: Fix the issue with sleep timer disappear"
diff --git a/fmapp2/src/com/caf/fmradio/FMRadio.java b/fmapp2/src/com/caf/fmradio/FMRadio.java
index fb8ab23..e13d864 100644
--- a/fmapp2/src/com/caf/fmradio/FMRadio.java
+++ b/fmapp2/src/com/caf/fmradio/FMRadio.java
@@ -2315,7 +2315,7 @@
"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()) {