am 2d72041d: am 013275d5: am 89a3e1bb: Merge "Don\'t reevaluate disconnected networks" into mnc-dev
* commit '2d72041d47faa6718a7a0ec0b9b9b9b75757651b': Don't reevaluate disconnected networks
This commit is contained in:
@@ -2711,7 +2711,10 @@ public class ConnectivityService extends IConnectivityManager.Stub
|
||||
} else {
|
||||
nai = getNetworkAgentInfoForNetwork(network);
|
||||
}
|
||||
if (nai == null) return;
|
||||
if (nai == null || nai.networkInfo.getState() == NetworkInfo.State.DISCONNECTING ||
|
||||
nai.networkInfo.getState() == NetworkInfo.State.DISCONNECTED) {
|
||||
return;
|
||||
}
|
||||
// Revalidate if the app report does not match our current validated state.
|
||||
if (hasConnectivity == nai.lastValidated) return;
|
||||
final int uid = Binder.getCallingUid();
|
||||
|
||||
Reference in New Issue
Block a user