Skip to content
Snippets Groups Projects
Commit e26f23fd authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

Http DL: Use default port if none is set

parent 5b59c898
No related branches found
No related tags found
No related merge requests found
......@@ -113,8 +113,6 @@ public class HttpImageLoader implements Callbacks {
return icon;
try {
URL url = new URL(imageUrl);
if (url.getPort() <= 0)
return null;
urlConnection = (HttpURLConnection) url.openConnection();
InputStream in = new BufferedInputStream(urlConnection.getInputStream());
icon = BitmapFactory.decodeStream(in);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment