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

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ib005c7b3c640f88e89868ff334aae5dcfd7f3852
This commit is contained in:
Treehugger Robot
2021-01-18 06:04:45 +00:00
committed by Automerger Merge Worker

View File

@@ -129,7 +129,7 @@ public class VpnConfig implements Parcelable {
String[] routes = routesStr.trim().split(" "); String[] routes = routesStr.trim().split(" ");
for (String route : routes) { for (String route : routes) {
//each route is ip/prefix //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); this.routes.add(info);
updateAllowedFamilies(info.getDestination().getAddress()); updateAllowedFamilies(info.getDestination().getAddress());
} }