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

Commit 1a517d0c authored by Wink Saville's avatar Wink Saville Committed by Android (Google) Code Review
Browse files

Merge "Remove subclass cast for calls to isDnsCheckDisabled." into honeycomb-LTE

parents 8daec83f 38d284d3
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -99,9 +99,9 @@ public class CdmaDataConnection extends DataConnection {

    @Override
    protected boolean isDnsOk(String[] domainNameServers) {
        if ((NULL_IP.equals(domainNameServers[0])
        if (NULL_IP.equals(domainNameServers[0])
                && NULL_IP.equals(domainNameServers[1])
                && !((CDMAPhone) phone).isDnsCheckDisabled())) {
                && !phone.isDnsCheckDisabled()) {
            return false;
        } else {
            return true;
+1 −1
Original line number Diff line number Diff line
@@ -130,7 +130,7 @@ public class GsmDataConnection extends DataConnection {
    @Override
    protected boolean isDnsOk(String[] domainNameServers) {
        if (NULL_IP.equals(domainNameServers[0]) && NULL_IP.equals(domainNameServers[1])
                && !((GSMPhone) phone).isDnsCheckDisabled()) {
                && !phone.isDnsCheckDisabled()) {
            // Work around a race condition where QMI does not fill in DNS:
            // Deactivate PDP and let DataConnectionTracker retry.
            // Do not apply the race condition workaround for MMS APN