merge in oc-release history after reset to master
diff --git a/src/com/android/providers/telephony/TelephonyProvider.java b/src/com/android/providers/telephony/TelephonyProvider.java
index 99d0c3b..b816e5f 100644
--- a/src/com/android/providers/telephony/TelephonyProvider.java
+++ b/src/com/android/providers/telephony/TelephonyProvider.java
@@ -1092,7 +1092,14 @@
addStringAttribute(parser, "mmsproxy", map, MMSPROXY);
addStringAttribute(parser, "mmsport", map, MMSPORT);
addStringAttribute(parser, "mmsc", map, MMSC);
- addStringAttribute(parser, "type", map, TYPE);
+
+ String apnType = parser.getAttributeValue(null, "type");
+ if (apnType != null) {
+ // Remove spaces before putting it in the map.
+ apnType = apnType.replaceAll("\\s+", "");
+ map.put(TYPE, apnType);
+ }
+
addStringAttribute(parser, "protocol", map, PROTOCOL);
addStringAttribute(parser, "roaming_protocol", map, ROAMING_PROTOCOL);