Revert "FM: remove getFmStatsProp() call from main thread"
This reverts commit d6fdbe6f9e9b247c5cf41a82079c3015f6f83a56.
Change-Id: If111813b1db1f48030c6512160fcea1d2eb3de8c
diff --git a/fmapp2/src/com/caf/fmradio/FMRadioService.java b/fmapp2/src/com/caf/fmradio/FMRadioService.java
index b1d7216..774f74f 100644
--- a/fmapp2/src/com/caf/fmradio/FMRadioService.java
+++ b/fmapp2/src/com/caf/fmradio/FMRadioService.java
@@ -158,7 +158,6 @@
private boolean mA2dpDisconnected = false;
private boolean mA2dpConnected = false;
- private boolean mFmStats = false;
//Install the death receipient
private IBinder.DeathRecipient mDeathRecipient;
private FMDeathRecipient mFMdr;
@@ -2315,9 +2314,6 @@
/* reset SSR flag */
mIsSSRInProgressFromActivity = false;
}
-
- if (mReceiver != null)
- mFmStats = mReceiver.getFmStatsProp();
}
return(bStatus);
}
@@ -3780,7 +3776,10 @@
}
boolean getFmStatsProp() {
- return mFmStats;
+ if(mReceiver != null)
+ return mReceiver.getFmStatsProp();
+ else
+ return false;
}
private void setAlarmSleepExpired (long duration) {