Loading services/java/com/android/server/connectivity/PacManager.java +10 −5 Original line number Diff line number Diff line Loading @@ -252,7 +252,7 @@ public class PacManager { Intent intent = new Intent(); intent.setClassName(PAC_PACKAGE, PAC_SERVICE); // Already bound no need to bind again. if (mProxyConnection != null) { if ((mProxyConnection != null) && (mConnection != null)) { if (mLastPort != -1) { sendPacBroadcast(new ProxyProperties(mPacUrl, mLastPort)); } else { Loading Loading @@ -332,11 +332,16 @@ public class PacManager { } private void unbind() { if (mConnection != null) { mContext.unbindService(mConnection); mContext.unbindService(mProxyConnection); mConnection = null; } if (mProxyConnection != null) { mContext.unbindService(mProxyConnection); mProxyConnection = null; } mProxyService = null; } private void sendPacBroadcast(ProxyProperties proxy) { Intent intent = new Intent(Proxy.PROXY_CHANGE_ACTION); Loading Loading
services/java/com/android/server/connectivity/PacManager.java +10 −5 Original line number Diff line number Diff line Loading @@ -252,7 +252,7 @@ public class PacManager { Intent intent = new Intent(); intent.setClassName(PAC_PACKAGE, PAC_SERVICE); // Already bound no need to bind again. if (mProxyConnection != null) { if ((mProxyConnection != null) && (mConnection != null)) { if (mLastPort != -1) { sendPacBroadcast(new ProxyProperties(mPacUrl, mLastPort)); } else { Loading Loading @@ -332,11 +332,16 @@ public class PacManager { } private void unbind() { if (mConnection != null) { mContext.unbindService(mConnection); mContext.unbindService(mProxyConnection); mConnection = null; } if (mProxyConnection != null) { mContext.unbindService(mProxyConnection); mProxyConnection = null; } mProxyService = null; } private void sendPacBroadcast(ProxyProperties proxy) { Intent intent = new Intent(Proxy.PROXY_CHANGE_ACTION); Loading