Merge "Remove ProxyInfo(String) and update callers to use ProxyInfo(Uri)" am: d8b9f9fc07 am: 251d68487e am: ef48aef3ac am: 6350508edd am: 64bb3e63f7
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1146757 Change-Id: I7965efe61d17ad96d1ff409b57c126e3c8f7fc78
This commit is contained in:
@@ -21,6 +21,7 @@ import android.compat.annotation.UnsupportedAppUsage;
|
||||
import android.net.Ikev2VpnProfile;
|
||||
import android.net.PlatformVpnProfile;
|
||||
import android.net.ProxyInfo;
|
||||
import android.net.Uri;
|
||||
import android.os.Build;
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
@@ -287,7 +288,7 @@ public final class VpnProfile implements Cloneable, Parcelable {
|
||||
profile.proxy = new ProxyInfo(host, port.isEmpty() ?
|
||||
0 : Integer.parseInt(port), exclList);
|
||||
} else if (!pacFileUrl.isEmpty()) {
|
||||
profile.proxy = new ProxyInfo(pacFileUrl);
|
||||
profile.proxy = new ProxyInfo(Uri.parse(pacFileUrl));
|
||||
}
|
||||
} // else profile.proxy = null
|
||||
|
||||
|
||||
Reference in New Issue
Block a user