Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d59c3e95 authored by Lorenzo Colitti's avatar Lorenzo Colitti Committed by Android Git Automerger
Browse files

am 485826b2: am 4b545dfb: Merge "Add a hidden method to clear the capabilities...

am 485826b2: am 4b545dfb: Merge "Add a hidden method to clear the capabilities of a NetworkRequest" into mnc-dev

* commit '485826b2':
  Add a hidden method to clear the capabilities of a NetworkRequest
parents 3218b1f2 485826b2
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -114,6 +114,18 @@ public class NetworkRequest implements Parcelable {
            return this;
        }

        /**
         * Completely clears all the {@code NetworkCapabilities} from this builder instance,
         * removing even the capabilities that are set by default when the object is constructed.
         *
         * @return The builder to facilitate chaining.
         * @hide
         */
        public Builder clearCapabilities() {
            mNetworkCapabilities.clearAll();
            return this;
        }

        /**
         * Adds the given transport requirement to this builder.  These represent
         * the set of allowed transports for the request.  Only networks using one