Loading core/java/android/net/DownloadManager.java +2 −2 Original line number Original line Diff line number Diff line Loading @@ -286,8 +286,8 @@ public class DownloadManager { throw new NullPointerException(); throw new NullPointerException(); } } String scheme = uri.getScheme(); String scheme = uri.getScheme(); if (scheme == null || !scheme.equals("http")) { if (scheme == null || (!scheme.equals("http") && !scheme.equals("https"))) { throw new IllegalArgumentException("Can only download HTTP URIs: " + uri); throw new IllegalArgumentException("Can only download HTTP/HTTPS URIs: " + uri); } } mUri = uri; mUri = uri; } } Loading Loading
core/java/android/net/DownloadManager.java +2 −2 Original line number Original line Diff line number Diff line Loading @@ -286,8 +286,8 @@ public class DownloadManager { throw new NullPointerException(); throw new NullPointerException(); } } String scheme = uri.getScheme(); String scheme = uri.getScheme(); if (scheme == null || !scheme.equals("http")) { if (scheme == null || (!scheme.equals("http") && !scheme.equals("https"))) { throw new IllegalArgumentException("Can only download HTTP URIs: " + uri); throw new IllegalArgumentException("Can only download HTTP/HTTPS URIs: " + uri); } } mUri = uri; mUri = uri; } } Loading