summaryrefslogtreecommitdiffstats
path: root/qcom
diff options
context:
space:
mode:
authorM1cha <sigmaepsilon92@gmail.com>2014-03-21 09:06:35 +0000
committerMichael Bestas <mikeioannina@gmail.com>2014-07-16 22:31:12 +0000
commit6ec945150e244b849179158513b1db07176fb410 (patch)
tree3dbecddd6aefc1d21d9d377a7b7acd72a3a14ba4 /qcom
parente4fe7fd6ff5605458c96540f09a3a0744d0690d8 (diff)
downloadandroid_hardware_qcom_fm-6ec945150e244b849179158513b1db07176fb410.tar.gz
android_hardware_qcom_fm-6ec945150e244b849179158513b1db07176fb410.tar.bz2
android_hardware_qcom_fm-6ec945150e244b849179158513b1db07176fb410.zip
fm: fix getting RDS text
for some reason java totally freaks out if you use a index outside the string accoridng to java doc the last char of the string should be used in that case - SHOULD... Change-Id: I98c95602a0a77673ffd0bb287c06afcea5d596c3
Diffstat (limited to 'qcom')
-rw-r--r--qcom/fmradio/FmReceiver.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/qcom/fmradio/FmReceiver.java b/qcom/fmradio/FmReceiver.java
index b1bdb31..8dc5973 100644
--- a/qcom/fmradio/FmReceiver.java
+++ b/qcom/fmradio/FmReceiver.java
@@ -1458,7 +1458,7 @@ public class FmReceiver extends FmTransceiver
mRdsData.setPrgmType ( (int)( buff[1] & 0x1F));
try
{
- rdsStr = rdsStr.substring(5, (int) buff[0]+ 5);
+ rdsStr = rdsStr.substring(5, (int) buff[0]+ 4);
mRdsData.setRadioText (rdsStr);
} catch (StringIndexOutOfBoundsException x)