diff options
author | Robert Greenwalt <robdroid@android.com> | 2010-02-23 18:15:29 -0800 |
---|---|---|
committer | Robert Greenwalt <robdroid@android.com> | 2010-02-23 18:15:29 -0800 |
commit | 6142a0b68fffb2d9595c364ebf4f8be996f37f77 (patch) | |
tree | 2fd41740966c89152d4682c7cd129673ddf44777 /services/java/com/android/server/connectivity | |
parent | 2854419072ec2cc109f4e6af1bf96ff9396563cf (diff) | |
download | frameworks_base-6142a0b68fffb2d9595c364ebf4f8be996f37f77.zip frameworks_base-6142a0b68fffb2d9595c364ebf4f8be996f37f77.tar.gz frameworks_base-6142a0b68fffb2d9595c364ebf4f8be996f37f77.tar.bz2 |
Fix build.
clicked "submit" on I65ae29bd when I shouldn't have.
Fixing according to comments and a build error change.
Diffstat (limited to 'services/java/com/android/server/connectivity')
-rw-r--r-- | services/java/com/android/server/connectivity/Tethering.java | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/services/java/com/android/server/connectivity/Tethering.java b/services/java/com/android/server/connectivity/Tethering.java index 26a2211..10d6e3a 100644 --- a/services/java/com/android/server/connectivity/Tethering.java +++ b/services/java/com/android/server/connectivity/Tethering.java @@ -265,7 +265,6 @@ public class Tethering extends INetworkManagementEventObserver.Stub { } private void sendTetherStateChangedBroadcast() { -Log.e("RJGRJG", "sendTetherStateChangedBroadcast"); IBinder b = ServiceManager.getService(Context.CONNECTIVITY_SERVICE); IConnectivityManager service = IConnectivityManager.Stub.asInterface(b); try { @@ -442,7 +441,6 @@ Log.e("RJGRJG", "sendTetherStateChangedBroadcast"); } Tethering.this.toggleUsbIfaces(false); // remove them } else if (action.equals(ConnectivityManager.CONNECTIVITY_ACTION)) { -Log.e("RJGRJG", "got conn action :"+action); IBinder b = ServiceManager.getService(Context.CONNECTIVITY_SERVICE); IConnectivityManager service = IConnectivityManager.Stub.asInterface(b); try { @@ -991,10 +989,11 @@ Log.e("RJGRJG", "got conn action :"+action); if (!Tethering.this.configureUsb(false)) { transitionTo(mUsbConfigurationErrorState); } else { - transitionTo(mUsbConfigurationErrorState); + transitionTo(mInitialState); } + } else { + transitionTo(mInitialState); } - transitionTo(mInitialState); } else if (message.what == CMD_INTERFACE_DOWN) { transitionTo(mUnavailableState); } @@ -1032,7 +1031,7 @@ Log.e("RJGRJG", "got conn action :"+action); sendTetherStateChangedBroadcast(); if (mUsb) { if (!Tethering.this.configureUsb(false)) { - transitionTo(mUsbConfigurationError); + transitionTo(mUsbConfigurationErrorState); break; } } |