* commit '26b7ff9126f13c1bb65e976094727d464863fbfc': Switch the NetworkInfo.mIsAvailable default
This commit is contained in:
@@ -4231,6 +4231,7 @@ public class ConnectivityService extends IConnectivityManager.Stub {
|
|||||||
NetworkInfo result = new NetworkInfo(
|
NetworkInfo result = new NetworkInfo(
|
||||||
networkType, 0, ConnectivityManager.getNetworkTypeName(networkType), "");
|
networkType, 0, ConnectivityManager.getNetworkTypeName(networkType), "");
|
||||||
result.setDetailedState(NetworkInfo.DetailedState.DISCONNECTED, null, null);
|
result.setDetailedState(NetworkInfo.DetailedState.DISCONNECTED, null, null);
|
||||||
|
result.setIsAvailable(true);
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user