summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorShareef Ali <shareefalis@cyanogenmod.org>2013-07-20 07:20:56 -0500
committerShareef Ali <shareefalis@cyanogenmod.org>2013-07-20 07:23:34 -0500
commitef61f36300a3bca75bd0d06ad7d89e474c208af4 (patch)
treef79bb9b812b841bfd93d74c8d220adbea819461a /src
parent6a8675a72d5f9f032c4ad9b9da4158a12306cea6 (diff)
downloadframeworks_opt_telephony-ef61f36300a3bca75bd0d06ad7d89e474c208af4.zip
frameworks_opt_telephony-ef61f36300a3bca75bd0d06ad7d89e474c208af4.tar.gz
frameworks_opt_telephony-ef61f36300a3bca75bd0d06ad7d89e474c208af4.tar.bz2
SamsungQualcommRIL: always convert hex to int.
Change-Id: Idc9183c9041f4fb816ff82f428812bcfe7e5fce0
Diffstat (limited to 'src')
-rw-r--r--src/java/com/android/internal/telephony/SamsungQualcommRIL.java6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/java/com/android/internal/telephony/SamsungQualcommRIL.java b/src/java/com/android/internal/telephony/SamsungQualcommRIL.java
index 229444a..027af5a 100644
--- a/src/java/com/android/internal/telephony/SamsungQualcommRIL.java
+++ b/src/java/com/android/internal/telephony/SamsungQualcommRIL.java
@@ -521,11 +521,7 @@ public class SamsungQualcommRIL extends RIL implements CommandsInterface {
if (response[i]== null){
response[i]=Integer.toString(Integer.MAX_VALUE);
} else {
- try {
- Integer.parseInt(response[i]);
- } catch(NumberFormatException e) {
- response[i]=Integer.toString(Integer.parseInt(response[i],16));
- }
+ response[i]=Integer.toString(Integer.parseInt(response[i],16));
}
}
}