diff options
author | Mike Lockwood <lockwood@android.com> | 2010-03-03 15:12:00 -0500 |
---|---|---|
committer | Mike Lockwood <lockwood@android.com> | 2010-03-03 15:13:58 -0500 |
commit | 51cb9d5d55a673f329c17a689f724af772257804 (patch) | |
tree | d4f9ca764b22272f3c84968a90b32e7e72348afa | |
parent | 687c44f2f02cecc4103c611ead225f990402d1af (diff) | |
download | frameworks_base-51cb9d5d55a673f329c17a689f724af772257804.zip frameworks_base-51cb9d5d55a673f329c17a689f724af772257804.tar.gz frameworks_base-51cb9d5d55a673f329c17a689f724af772257804.tar.bz2 |
Fix off by one error in NetworkManagementService.isUsbRNDISStarted()
Change-Id: I74eea36464696d63ad072661704b410bfe40c1c8
Signed-off-by: Mike Lockwood <lockwood@android.com>
-rw-r--r-- | services/java/com/android/server/NetworkManagementService.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/services/java/com/android/server/NetworkManagementService.java b/services/java/com/android/server/NetworkManagementService.java index 6d121c3..53076de 100644 --- a/services/java/com/android/server/NetworkManagementService.java +++ b/services/java/com/android/server/NetworkManagementService.java @@ -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 { |