Set the NetworkInfo subtype to 0. am: fd43392b25 am: 7309c46403
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12246826 Change-Id: I8a54c8fa4c51d74f6e8b1dc98dad71208f4e3836
This commit is contained in:
@@ -354,8 +354,7 @@ public abstract class NetworkAgent {
|
|||||||
private static NetworkInfo getLegacyNetworkInfo(final NetworkAgentConfig config) {
|
private static NetworkInfo getLegacyNetworkInfo(final NetworkAgentConfig config) {
|
||||||
// The subtype can be changed with (TODO) setLegacySubtype, but it starts
|
// The subtype can be changed with (TODO) setLegacySubtype, but it starts
|
||||||
// with the type and an empty description.
|
// with the type and an empty description.
|
||||||
final NetworkInfo ni = new NetworkInfo(config.legacyType, config.legacyType,
|
final NetworkInfo ni = new NetworkInfo(config.legacyType, 0, config.legacyTypeName, "");
|
||||||
config.legacyTypeName, "");
|
|
||||||
ni.setIsAvailable(true);
|
ni.setIsAvailable(true);
|
||||||
ni.setExtraInfo(config.getLegacyExtraInfo());
|
ni.setExtraInfo(config.getLegacyExtraInfo());
|
||||||
return ni;
|
return ni;
|
||||||
|
|||||||
Reference in New Issue
Block a user