Fix off by one error in NetworkManagementService.isUsbRNDISStarted()

Change-Id: I74eea36464696d63ad072661704b410bfe40c1c8
Signed-off-by: Mike Lockwood <lockwood@android.com>
This commit is contained in:
Mike Lockwood
2010-03-03 15:12:00 -05:00
parent 687c44f2f0
commit 51cb9d5d55

View File

@@ -447,7 +447,7 @@ class NetworkManagementService extends INetworkManagementService.Stub {
String []tok = line.split(" ");
int code = Integer.parseInt(tok[0]);
if (code == NetdResponseCode.UsbRNDISStatusResult) {
if (tok[2].equals("started"))
if (tok[3].equals("started"))
return true;
return false;
} else {