|
|
|
@ -559,10 +559,11 @@ public class ContactInfo {
|
|
|
|
|
try {
|
|
|
|
|
String json = Helper.readStream(m.getInputStream());
|
|
|
|
|
JSONObject jroot = new JSONObject(json);
|
|
|
|
|
if (jroot.has("icons")) {
|
|
|
|
|
JSONArray jicons = jroot.getJSONArray("icons");
|
|
|
|
|
for (int i = 0; i < jicons.length(); i++) {
|
|
|
|
|
JSONObject jicon = jicons.getJSONObject(i);
|
|
|
|
|
String src = jicon.getString("src");
|
|
|
|
|
String src = jicon.optString("src");
|
|
|
|
|
String sizes = jicon.optString("sizes", "");
|
|
|
|
|
String type = jicon.optString("type", "");
|
|
|
|
|
if (!TextUtils.isEmpty(src)) {
|
|
|
|
@ -573,6 +574,7 @@ public class ContactInfo {
|
|
|
|
|
imgs.add(img);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
} finally {
|
|
|
|
|
m.disconnect();
|
|
|
|
|
}
|
|
|
|
|