Merge "Do not deduce VCN capability if Builder is derived from request" am: ed05115dca am: b91719b526
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1683015 Change-Id: Ib6a1b690c32b25aa86d8d432ac3f3a9eb1803efa
This commit is contained in:
@@ -220,6 +220,10 @@ public class NetworkRequest implements Parcelable {
|
||||
public Builder(@NonNull final NetworkRequest request) {
|
||||
Objects.requireNonNull(request);
|
||||
mNetworkCapabilities = request.networkCapabilities;
|
||||
// If the caller constructed the builder from a request, it means the user
|
||||
// might explicitly want the capabilities from the request. Thus, the NOT_VCN_MANAGED
|
||||
// capabilities should not be touched later.
|
||||
mModifiedNotVcnManaged = true;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user