From 0fcf2097e7e217319b625d5dfc24aded06c02227 Mon Sep 17 00:00:00 2001 From: Johan Redestig Date: Thu, 30 Aug 2012 13:53:10 +0200 Subject: WspTypeDecoder: fixed decoding of content parameters The removed condition prevented any parameter to have 0 as integer value. Change-Id: Iaa8e106e49a51322c07f647f2f66bb7bd6055c89 --- src/java/com/android/internal/telephony/WspTypeDecoder.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/java') diff --git a/src/java/com/android/internal/telephony/WspTypeDecoder.java b/src/java/com/android/internal/telephony/WspTypeDecoder.java index 73260fb..a19546a 100755 --- a/src/java/com/android/internal/telephony/WspTypeDecoder.java +++ b/src/java/com/android/internal/telephony/WspTypeDecoder.java @@ -506,11 +506,7 @@ public class WspTypeDecoder { } else if (decodeIntegerValue(startIndex + totalRead)) { totalRead += dataLength; int intValue = (int) unsigned32bit; - if (intValue == 0) { - value = ""; - } else { - value = String.valueOf(intValue); - } + value = String.valueOf(intValue); } else { decodeTokenText(startIndex + totalRead); totalRead += dataLength; -- cgit v1.1