Loading core/java/android/net/NetworkAgent.java +4 −1 Original line number Diff line number Diff line Loading @@ -304,7 +304,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; } /** Loading Loading
core/java/android/net/NetworkAgent.java +4 −1 Original line number Diff line number Diff line Loading @@ -304,7 +304,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; } /** Loading