Set setCurrentProxyScriptUrl as public am: 26dbdc853b

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1540913

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I2936ba4d40e18c507b68f6b3b97605d8a1483adf
This commit is contained in:
Remi NGUYEN VAN
2021-01-07 09:26:30 +00:00
committed by Automerger Merge Worker

View File

@@ -177,7 +177,7 @@ public class PacManager {
* @param proxy Proxy information that is about to be broadcast. * @param proxy Proxy information that is about to be broadcast.
* @return Returns whether the broadcast should be sent : either DO_ or DONT_SEND_BROADCAST * @return Returns whether the broadcast should be sent : either DO_ or DONT_SEND_BROADCAST
*/ */
synchronized boolean setCurrentProxyScriptUrl(ProxyInfo proxy) { public synchronized boolean setCurrentProxyScriptUrl(ProxyInfo proxy) {
if (!Uri.EMPTY.equals(proxy.getPacFileUrl())) { if (!Uri.EMPTY.equals(proxy.getPacFileUrl())) {
if (proxy.getPacFileUrl().equals(mPacUrl) && (proxy.getPort() > 0)) { if (proxy.getPacFileUrl().equals(mPacUrl) && (proxy.getPort() > 0)) {
// Allow to send broadcast, nothing to do. // Allow to send broadcast, nothing to do.