FM: Release WakeLock while FM off
Change-Id: I67f583495b7a38c8dcf4286d1031b032370439a8
diff --git a/fmapp2/src/com/caf/fmradio/FMRadioService.java b/fmapp2/src/com/caf/fmradio/FMRadioService.java
index 42e0a18..08bc6b3 100644
--- a/fmapp2/src/com/caf/fmradio/FMRadioService.java
+++ b/fmapp2/src/com/caf/fmradio/FMRadioService.java
@@ -2676,14 +2676,16 @@
* @return true if fm Disable api was invoked successfully, false if the api failed.
*/
private boolean fmOff() {
+ boolean ret = false;
if (mReceiver != null) {
if (mReceiver.isCherokeeChip()) {
- return fmOffImplCherokee();
+ ret = fmOffImplCherokee();
} else {
- return fmOffImpl();
+ ret = fmOffImpl();
}
}
- return false;
+ mWakeLock.release();
+ return ret;
}
private boolean fmOff(int off_from) {