CW on Master: Disable CaptivePortalTracker, EthernetService

BUG: 15143878

Change-Id: I6c534a28c1fcd475982ae70e7f3af69f3a219e24
This commit is contained in:
Joe LaPenna
2014-07-04 17:15:54 -07:00
committed by Robert Greenwalt
parent aecbb5c710
commit 0a998b84bc

View File

@@ -51,6 +51,11 @@ public class EthernetManager {
* @return the Ethernet Configuration, contained in {@link IpConfiguration}.
*/
public IpConfiguration getConfiguration() {
if (mService == null) {
return new IpConfiguration(IpAssignment.UNASSIGNED,
ProxySettings.UNASSIGNED,
new LinkProperties());
}
try {
return mService.getConfiguration();
} catch (RemoteException e) {
@@ -64,6 +69,9 @@ public class EthernetManager {
* Set Ethernet configuration.
*/
public void setConfiguration(IpConfiguration config) {
if (mService == null) {
return;
}
try {
mService.setConfiguration(config);
} catch (RemoteException e) {