Merge "Connectivity: Fix map access" into pi-dev

This commit is contained in:
TreeHugger Robot
2018-03-07 04:53:07 +00:00
committed by Android (Google) Code Review

View File

@@ -187,7 +187,7 @@ public class DnsManager {
Slog.w(TAG, "updatePrivateDns(" + network + ", " + cfg + ")");
return (cfg != null)
? mPrivateDnsMap.put(network.netId, cfg)
: mPrivateDnsMap.remove(network);
: mPrivateDnsMap.remove(network.netId);
}
public void setDnsConfigurationForNetwork(