Merge "Add a log message if enabling Ethernet tethering if it is already enabled."
This commit is contained in:
@@ -635,7 +635,10 @@ public class Tethering {
|
|||||||
Context.ETHERNET_SERVICE);
|
Context.ETHERNET_SERVICE);
|
||||||
synchronized (mPublicSync) {
|
synchronized (mPublicSync) {
|
||||||
if (enable) {
|
if (enable) {
|
||||||
if (mEthernetCallback != null) return TETHER_ERROR_NO_ERROR;
|
if (mEthernetCallback != null) {
|
||||||
|
Log.d(TAG, "Ethernet tethering already started");
|
||||||
|
return TETHER_ERROR_NO_ERROR;
|
||||||
|
}
|
||||||
|
|
||||||
mEthernetCallback = new EthernetCallback();
|
mEthernetCallback = new EthernetCallback();
|
||||||
mEthernetIfaceRequest = em.requestTetheredInterface(mExecutor, mEthernetCallback);
|
mEthernetIfaceRequest = em.requestTetheredInterface(mExecutor, mEthernetCallback);
|
||||||
|
|||||||
Reference in New Issue
Block a user