Moved transport to IntDef

Moved out from the sub class per API review feedback.

Test: Build
Bug: 128607082
Change-Id: I1b513bcaaa0ebf47c14593d962579ed48a7c6db0
This commit is contained in:
Jack Yu
2019-03-14 15:42:09 -07:00
parent 4f57153f1b
commit 1d2fb10430

View File

@@ -28,6 +28,7 @@ import android.content.Intent;
import android.content.res.Resources; import android.content.res.Resources;
import android.net.wifi.WifiInfo; import android.net.wifi.WifiInfo;
import android.os.UserHandle; import android.os.UserHandle;
import android.telephony.AccessNetworkConstants.TransportType;
import android.telephony.TelephonyManager; import android.telephony.TelephonyManager;
import android.text.TextUtils; import android.text.TextUtils;
import android.util.Slog; import android.util.Slog;
@@ -92,7 +93,7 @@ public class NetworkNotificationManager {
return -1; return -1;
} }
private static String getTransportName(int transportType) { private static String getTransportName(@TransportType int transportType) {
Resources r = Resources.getSystem(); Resources r = Resources.getSystem();
String[] networkTypes = r.getStringArray(R.array.network_switch_type_name); String[] networkTypes = r.getStringArray(R.array.network_switch_type_name);
try { try {