Remove ProxyInfo(String) and update callers to use ProxyInfo(Uri)
Update all callers to use ProxyInfo(Uri) and remove ProxyInfo(String).
Bug: 160557668
Test: build pass
atest FrameworksNetTests
Change-Id: I4c980764c8839c48acf03208bb68cd53eb910121
This commit is contained in:
@@ -24,6 +24,7 @@ import android.net.NetworkUtils;
|
||||
import android.net.ProxyInfo;
|
||||
import android.net.RouteInfo;
|
||||
import android.net.StaticIpConfiguration;
|
||||
import android.net.Uri;
|
||||
import android.util.ArrayMap;
|
||||
import android.util.Log;
|
||||
import android.util.SparseArray;
|
||||
@@ -372,7 +373,7 @@ public class IpConfigStore {
|
||||
config.httpProxy = proxyInfo;
|
||||
break;
|
||||
case PAC:
|
||||
ProxyInfo proxyPacProperties = new ProxyInfo(pacFileUrl);
|
||||
ProxyInfo proxyPacProperties = new ProxyInfo(Uri.parse(pacFileUrl));
|
||||
config.proxySettings = proxySettings;
|
||||
config.httpProxy = proxyPacProperties;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user