diff options
author | Danesh M <daneshm90@gmail.com> | 2014-11-17 13:33:51 -0800 |
---|---|---|
committer | Matt Wagantall <mwagantall@cyngn.com> | 2016-02-19 14:07:47 -0800 |
commit | 10f12bc879ea4f053611bbe0eb0eb3ecc8ee630b (patch) | |
tree | ac60ebe0a927ff55ace048a1fd9e073a6f44a738 | |
parent | db904f4dc085e95a7a4d65cd36b7335775dbdca5 (diff) | |
download | android_hardware_qcom_fm-10f12bc879ea4f053611bbe0eb0eb3ecc8ee630b.tar.gz android_hardware_qcom_fm-10f12bc879ea4f053611bbe0eb0eb3ecc8ee630b.tar.bz2 android_hardware_qcom_fm-10f12bc879ea4f053611bbe0eb0eb3ecc8ee630b.zip |
Fm : Update India bands
Change-Id: I1727b585865b422ef5124a3da2d2be384f9fdfa1
-rw-r--r-- | fmapp2/res/values/arrays.xml | 2 | ||||
-rw-r--r-- | fmapp2/res/values/customize.xml | 6 | ||||
-rw-r--r-- | fmapp2/src/com/caf/fmradio/FmSharedPreferences.java | 15 |
3 files changed, 4 insertions, 19 deletions
diff --git a/fmapp2/res/values/arrays.xml b/fmapp2/res/values/arrays.xml index ffa4494..3282f02 100644 --- a/fmapp2/res/values/arrays.xml +++ b/fmapp2/res/values/arrays.xml @@ -297,7 +297,7 @@ <item>Germany (87.5MHz to 108.0MHz in 50 KHz steps)</item> <item>Greece (87.5MHz to 108.0MHz in 50 KHz steps)</item> <item>Hong Kong (87.5MHz to 108.0MHz in 100 KHz steps)</item> - <item>India (91.0MHz to 106.4MHz in 100 KHz steps)</item> + <item>India (87.5MHz to 108.0MHz in 100 KHz steps)</item> <item>Ireland (87.5MHz to 108.0MHz in 50 KHz steps)</item> <item>Italy (87.5MHz to 108.0MHz in 50 KHz steps)</item> <item>Korea (87.5MHz to 108.0MHz in 200 KHz steps)</item> diff --git a/fmapp2/res/values/customize.xml b/fmapp2/res/values/customize.xml index f24c67c..43f4018 100644 --- a/fmapp2/res/values/customize.xml +++ b/fmapp2/res/values/customize.xml @@ -39,12 +39,6 @@ IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. <bool name="def_fm_country_location_enabled">false</bool> <!-- - customize the the special carrier for fm, - default value is false,true is for Micromax - --> - <bool name="def_fm_special_carrier_enabled">false</bool> - - <!-- customize the output list,true is stereo only, false is stereo and mono, default value is false --> diff --git a/fmapp2/src/com/caf/fmradio/FmSharedPreferences.java b/fmapp2/src/com/caf/fmradio/FmSharedPreferences.java index 82b2f6d..23eb152 100644 --- a/fmapp2/src/com/caf/fmradio/FmSharedPreferences.java +++ b/fmapp2/src/com/caf/fmradio/FmSharedPreferences.java @@ -171,7 +171,6 @@ public class FmSharedPreferences private static boolean mAFAutoSwitch = true; private static int mRecordDuration = 0; private static int mLastAudioMode = -1; - private static boolean mSpecialCarrierFlag = false; public static int mDefaultCountryIndex = REGIONAL_BAND_NORTH_AMERICA; @@ -453,8 +452,6 @@ public class FmSharedPreferences { return; } - mSpecialCarrierFlag = mContext.getResources().getBoolean( - R.bool.def_fm_special_carrier_enabled); SharedPreferences sp = mContext.getSharedPreferences(SHARED_PREFS, Context.MODE_PRIVATE); mTunedFrequency = sp.getInt(PREF_LAST_TUNED_FREQUENCY, DEFAULT_NO_FREQUENCY); mRecordDuration = sp.getInt(LAST_RECORD_DURATION, RECORD_DUR_INDEX_0_VAL); @@ -942,15 +939,9 @@ public class FmSharedPreferences } case REGIONAL_BAND_INDIA: { - if (mSpecialCarrierFlag) { - /*87500 TO 108000 IN 100 KHZ STEPS*/ - mFMConfiguration.setLowerLimit(87500); - mFMConfiguration.setUpperLimit(108000); - } else { - /*91000 TO 106400 IN 100 KHZ STEPS*/ - mFMConfiguration.setLowerLimit(91000); - mFMConfiguration.setUpperLimit(106400); - } + /*87500 TO 108000 IN 100 KHZ STEPS*/ + mFMConfiguration.setLowerLimit(87500); + mFMConfiguration.setUpperLimit(108000); mFrequencyBand_Stepsize = 100; break; } |