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

Commit 7b04317b authored by San Mehat's avatar San Mehat Committed by Android (Google) Code Review
Browse files

Merge "NativeDaemonConnector: fix doListCommand() to return *all* list elements"

parents b91f4643 80120b43
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -255,11 +255,7 @@ final class NativeDaemonConnector implements Runnable {
                String[] tok = line.split(" ");
                int code = Integer.parseInt(tok[0]);
                if (code == expectedResponseCode) {
                    if (tok.length !=2) {
                        throw new IllegalStateException(
                                String.format("Malformatted list entry '%s'", line));
                    }
                    rdata[idx++] = tok[1];
                    rdata[idx++] = line.substring(tok[0].length() + 1);
                } else if (code == NativeDaemonConnector.ResponseCode.CommandOkay) {
                    return rdata;
                } else {