summaryrefslogtreecommitdiffstats
path: root/fmapp2/src/com/caf/fmradio/FMRadio.java
diff options
context:
space:
mode:
authorVenkateshwarlu Domakonda <vdomak@codeaurora.org>2014-07-15 16:34:05 +0530
committerVenkateshwarlu Domakonda <vdomak@codeaurora.org>2014-07-15 19:27:04 +0530
commitcabfc59254d3c8ed45cbbeef6345df290cbb1335 (patch)
treebaf86cd67e827f4a5876017bf6bcea3d8e38ac96 /fmapp2/src/com/caf/fmradio/FMRadio.java
parentbe156648a97afc0424f75209027dacbcddc406d2 (diff)
downloadandroid_hardware_qcom_fm-cabfc59254d3c8ed45cbbeef6345df290cbb1335.tar.gz
android_hardware_qcom_fm-cabfc59254d3c8ed45cbbeef6345df290cbb1335.tar.bz2
android_hardware_qcom_fm-cabfc59254d3c8ed45cbbeef6345df290cbb1335.zip
FM: Disable search by PTY
Disable PTY search on Silabs based targets. Change-Id: Ib7537df27fa4eb9988e156fece668102d0807e13 CRs-Fixed: 693912
Diffstat (limited to 'fmapp2/src/com/caf/fmradio/FMRadio.java')
-rw-r--r--fmapp2/src/com/caf/fmradio/FMRadio.java9
1 files changed, 8 insertions, 1 deletions
diff --git a/fmapp2/src/com/caf/fmradio/FMRadio.java b/fmapp2/src/com/caf/fmradio/FMRadio.java
index 0893664..f4ed775 100644
--- a/fmapp2/src/com/caf/fmradio/FMRadio.java
+++ b/fmapp2/src/com/caf/fmradio/FMRadio.java
@@ -269,6 +269,7 @@ public class FMRadio extends Activity
public static boolean mUpdatePickerValue = false;
private LoadedDataAndState SavedDataAndState = null;
+ private static String mBTsoc = "invalid";
/** fm stats property string */
public static final String FM_STATS_PROP = "persist.fm.stats";
@@ -387,6 +388,7 @@ public class FMRadio extends Activity
if ((mERadioTextScroller == null) && (mERadioTextTV != null)) {
mERadioTextScroller = new ScrollerText(mERadioTextTV);
}
+ mBTsoc = SystemProperties.get("qcom.bluetooth.soc");
}
protected void setDisplayvalue(){
@@ -697,7 +699,12 @@ public class FMRadio extends Activity
startActivity(launchFMStatIntent);
return true;
case MENU_SCAN_START:
- showDialog(DIALOG_SEARCH);
+ if (mBTsoc.equals("rome")) {
+ clearStationList();
+ initiateSearch(0); // 0 - All stations
+ } else {
+ showDialog(DIALOG_SEARCH);
+ }
return true;
case MENU_SCAN_STOP:
cancelSearch();