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

Commit be591d73 authored by Robert Greenwalt's avatar Robert Greenwalt Committed by Android Git Automerger
Browse files

am 86574d66: am 0d8acea9: Make copy-constructor make deep copy.

* commit '86574d66':
  Make copy-constructor make deep copy.
parents 94eea0b2 86574d66
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -80,9 +80,9 @@ public class LinkProperties implements Parcelable {
    public LinkProperties(LinkProperties source) {
        if (source != null) {
            mIfaceName = source.getInterfaceName();
            mLinkAddresses = source.getLinkAddresses();
            mDnses = source.getDnses();
            mRoutes = source.getRoutes();
            for (LinkAddress l : source.getLinkAddresses()) mLinkAddresses.add(l);
            for (InetAddress i : source.getDnses()) mDnses.add(i);
            for (RouteInfo r : source.getRoutes()) mRoutes.add(r);
            mHttpProxy = (source.getHttpProxy() == null)  ?
                null : new ProxyProperties(source.getHttpProxy());
        }