Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 51cb9d5d authored by Mike Lockwood's avatar Mike Lockwood
Browse files

Fix off by one error in NetworkManagementService.isUsbRNDISStarted()



Change-Id: I74eea36464696d63ad072661704b410bfe40c1c8
Signed-off-by: default avatarMike Lockwood <lockwood@android.com>
parent 687c44f2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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 {