From a62d0c0a0dfe0a74b424c200b69cecb26ea1a169 Mon Sep 17 00:00:00 2001 From: Venkateshwarlu Domakonda Date: Fri, 22 Aug 2014 17:51:31 +0530 Subject: FM: Fix the issue with sleep timer disappear When the sleep thread created, thread is in other than NEW. Setting the duration even thread is in other state except TERMINATED. Change-Id: I801911b67bd2b5c220f680ae513169030bc84164 CRs-Fixed: 694446 --- fmapp2/src/com/caf/fmradio/FMRadio.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()) { -- cgit v1.2.3