CW on Master: Disable CaptivePortalTracker, EthernetService
BUG: 15143878 Change-Id: I6c534a28c1fcd475982ae70e7f3af69f3a219e24
This commit is contained in:
committed by
Robert Greenwalt
parent
aecbb5c710
commit
0a998b84bc
@@ -51,6 +51,11 @@ public class EthernetManager {
|
|||||||
* @return the Ethernet Configuration, contained in {@link IpConfiguration}.
|
* @return the Ethernet Configuration, contained in {@link IpConfiguration}.
|
||||||
*/
|
*/
|
||||||
public IpConfiguration getConfiguration() {
|
public IpConfiguration getConfiguration() {
|
||||||
|
if (mService == null) {
|
||||||
|
return new IpConfiguration(IpAssignment.UNASSIGNED,
|
||||||
|
ProxySettings.UNASSIGNED,
|
||||||
|
new LinkProperties());
|
||||||
|
}
|
||||||
try {
|
try {
|
||||||
return mService.getConfiguration();
|
return mService.getConfiguration();
|
||||||
} catch (RemoteException e) {
|
} catch (RemoteException e) {
|
||||||
@@ -64,6 +69,9 @@ public class EthernetManager {
|
|||||||
* Set Ethernet configuration.
|
* Set Ethernet configuration.
|
||||||
*/
|
*/
|
||||||
public void setConfiguration(IpConfiguration config) {
|
public void setConfiguration(IpConfiguration config) {
|
||||||
|
if (mService == null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
try {
|
try {
|
||||||
mService.setConfiguration(config);
|
mService.setConfiguration(config);
|
||||||
} catch (RemoteException e) {
|
} catch (RemoteException e) {
|
||||||
|
|||||||
Reference in New Issue
Block a user