* commit 'a031ae8c825e154838f599fb072bba021e047f73': Download PAC when set after a diff PAC URL
This commit is contained in:
@@ -265,14 +265,9 @@ public class PacManager {
|
|||||||
}
|
}
|
||||||
Intent intent = new Intent();
|
Intent intent = new Intent();
|
||||||
intent.setClassName(PAC_PACKAGE, PAC_SERVICE);
|
intent.setClassName(PAC_PACKAGE, PAC_SERVICE);
|
||||||
// Already bound no need to bind again.
|
|
||||||
if ((mProxyConnection != null) && (mConnection != null)) {
|
if ((mProxyConnection != null) && (mConnection != null)) {
|
||||||
if (mLastPort != -1) {
|
// Already bound no need to bind again, just download the new file.
|
||||||
sendPacBroadcast(new ProxyInfo(mPacUrl, mLastPort));
|
IoThread.getHandler().post(mPacDownloader);
|
||||||
} else {
|
|
||||||
Log.e(TAG, "Received invalid port from Local Proxy,"
|
|
||||||
+ " PAC will not be operational");
|
|
||||||
}
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
mConnection = new ServiceConnection() {
|
mConnection = new ServiceConnection() {
|
||||||
|
|||||||
Reference in New Issue
Block a user