summaryrefslogtreecommitdiffstats
path: root/services/java/com/android/server/connectivity
diff options
context:
space:
mode:
authorRobert Greenwalt <robdroid@android.com>2010-02-23 18:15:29 -0800
committerRobert Greenwalt <robdroid@android.com>2010-02-23 18:15:29 -0800
commit6142a0b68fffb2d9595c364ebf4f8be996f37f77 (patch)
tree2fd41740966c89152d4682c7cd129673ddf44777 /services/java/com/android/server/connectivity
parent2854419072ec2cc109f4e6af1bf96ff9396563cf (diff)
downloadframeworks_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.java9
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;
}
}