Merge "Always set NetworkInfo objects to available." am: e8a5275bc9 am: 9b08eb340a

Change-Id: I2b5761e684fac7ef91be5084aa272c58d9dc01e4
This commit is contained in:
Automerger Merge Worker
2020-03-02 05:20:36 +00:00

View File

@@ -301,7 +301,10 @@ public abstract class NetworkAgent {
private static NetworkInfo getLegacyNetworkInfo(final NetworkAgentConfig config) {
// The subtype can be changed with (TODO) setLegacySubtype, but it starts
// with the type and an empty description.
return new NetworkInfo(config.legacyType, config.legacyType, config.legacyTypeName, "");
final NetworkInfo ni = new NetworkInfo(config.legacyType, config.legacyType,
config.legacyTypeName, "");
ni.setIsAvailable(true);
return ni;
}
/**