Merge "NetworkAgent: Send primitive integer in explicitlySelected"
This commit is contained in:
@@ -387,7 +387,7 @@ public abstract class NetworkAgent extends Handler {
|
||||
* {@link #saveAcceptUnvalidated} to respect the user's choice.
|
||||
*/
|
||||
public void explicitlySelected(boolean acceptUnvalidated) {
|
||||
queueOrSendMessage(EVENT_SET_EXPLICITLY_SELECTED, acceptUnvalidated);
|
||||
queueOrSendMessage(EVENT_SET_EXPLICITLY_SELECTED, acceptUnvalidated ? 1 : 0, 0);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -2202,7 +2202,7 @@ public class ConnectivityService extends IConnectivityManager.Stub
|
||||
loge("ERROR: already-connected network explicitly selected.");
|
||||
}
|
||||
nai.networkMisc.explicitlySelected = true;
|
||||
nai.networkMisc.acceptUnvalidated = (boolean) msg.obj;
|
||||
nai.networkMisc.acceptUnvalidated = msg.arg1 == 1;
|
||||
break;
|
||||
}
|
||||
case NetworkAgent.EVENT_PACKET_KEEPALIVE: {
|
||||
|
||||
Reference in New Issue
Block a user