Merge "Make sure the PAC script content is sent again" am: 6c942b9dc9 am: 8224136fc3 am: e99d391bf7
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1711211 Change-Id: Idbb25d0da65812b82ae2f5b7fda163d150700032
This commit is contained in:
@@ -344,11 +344,18 @@ public class PacProxyService extends IPacProxyManager.Stub {
|
|||||||
mProxyService = IProxyService.Stub.asInterface(binder);
|
mProxyService = IProxyService.Stub.asInterface(binder);
|
||||||
if (mProxyService == null) {
|
if (mProxyService == null) {
|
||||||
Log.e(TAG, "No proxy service");
|
Log.e(TAG, "No proxy service");
|
||||||
|
} else {
|
||||||
|
// If mCurrentPac is not null, then the PacService might have
|
||||||
|
// crashed and restarted. The download task will not actually
|
||||||
|
// call setCurrentProxyScript, so call setCurrentProxyScript here.
|
||||||
|
if (mCurrentPac != null) {
|
||||||
|
setCurrentProxyScript(mCurrentPac);
|
||||||
} else {
|
} else {
|
||||||
mNetThreadHandler.post(mPacDownloader);
|
mNetThreadHandler.post(mPacDownloader);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
};
|
};
|
||||||
mContext.bindService(intent, mConnection,
|
mContext.bindService(intent, mConnection,
|
||||||
Context.BIND_AUTO_CREATE | Context.BIND_NOT_FOREGROUND | Context.BIND_NOT_VISIBLE);
|
Context.BIND_AUTO_CREATE | Context.BIND_NOT_FOREGROUND | Context.BIND_NOT_VISIBLE);
|
||||||
|
|||||||
Reference in New Issue
Block a user