CB-1888: Can't add a Photo from a HTTPS address to Contact

This commit is contained in:
Simon MacDonald 2012-11-21 11:27:25 -05:00
parent 68161d2714
commit 5bebf11b37

View File

@ -1579,7 +1579,7 @@ public class ContactAccessorSdk5 extends ContactAccessor {
Uri uri = Uri.parse(path);
return mApp.getActivity().getContentResolver().openInputStream(uri);
}
if (path.startsWith("http:") || path.startsWith("file:")) {
if (path.startsWith("http:") || path.startsWith("https:") || path.startsWith("file:")) {
URL url = new URL(path);
return url.openStream();
}