Set the NetworkInfo subtype to 0. am: d287e8535d am: 85512cbf64 am: 020047560d

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12246826

Change-Id: Ieaa50d69279868c4a7bf068e24094881ae7baf1e
This commit is contained in:
Lorenzo Colitti
2020-07-28 18:46:51 +00:00
committed by Automerger Merge Worker

View File

@@ -354,8 +354,7 @@ 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.
final NetworkInfo ni = new NetworkInfo(config.legacyType, config.legacyType,
config.legacyTypeName, "");
final NetworkInfo ni = new NetworkInfo(config.legacyType, 0, config.legacyTypeName, "");
ni.setIsAvailable(true);
ni.setExtraInfo(config.getLegacyExtraInfo());
return ni;