am 1a517d0c: Merge "Remove subclass cast for calls to isDnsCheckDisabled." into honeycomb-LTE
* commit '1a517d0c251d2ca577500ec6c0e434725c3ddd21': Remove subclass cast for calls to isDnsCheckDisabled.
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user