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

Commit 788854b8 authored by Paul Mclean's avatar Paul Mclean
Browse files

Revert "Addeding try/catch to card#/device# parsing in AlsaDevicesParser.java"

This reverts commit 34f5e042.

Change-Id: Ie2a00ef26b20a662fb0e801925a3721804e427ba
parent 34f5e042
Loading
Loading
Loading
Loading
+4 −14
Original line number Original line Diff line number Diff line
@@ -98,24 +98,14 @@ public class AlsaDevicesParser {
                        break;
                        break;


                    case kToken_CardNum:
                    case kToken_CardNum:
                        try {
                        mCardNum = Integer.parseInt(token);
                        mCardNum = Integer.parseInt(token);
                        if (line.charAt(delimOffset) != '-') {
                        if (line.charAt(delimOffset) != '-') {
                            tokenIndex++; // no device # in the token stream
                            tokenIndex++; // no device # in the token stream
                        }
                        }
                        } catch (NumberFormatException e) {
                            Slog.e(TAG, "Failed to parse card number: " token);
                            return false;
                        }
                        break;
                        break;


                    case kToken_DeviceNum:
                    case kToken_DeviceNum:
                        try {
                        mDeviceNum = Integer.parseInt(token);
                        mDeviceNum = Integer.parseInt(token);
                        } catch (NumberFormatException e) {
                            Slog.e(TAG, "Failed to parse device number: " token);
                            return false;
                        }
                        break;
                        break;


                    case kToken_Type0:
                    case kToken_Type0: