Merge "Use API RouteInfo constructor in VpnConfig" am: 78426b28cc

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I1c4169ff740b8cb67bae6b85e17a79fc39e40247
This commit is contained in:
Treehugger Robot
2021-01-18 05:41:14 +00:00
committed by Automerger Merge Worker

View File

@@ -129,7 +129,7 @@ public class VpnConfig implements Parcelable {
String[] routes = routesStr.trim().split(" ");
for (String route : routes) {
//each route is ip/prefix
RouteInfo info = new RouteInfo(new IpPrefix(route), null);
RouteInfo info = new RouteInfo(new IpPrefix(route), null, null, RouteInfo.RTN_UNICAST);
this.routes.add(info);
updateAllowedFamilies(info.getDestination().getAddress());
}