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

Commit bb2387bd authored by Paul Mclean's avatar Paul Mclean Committed by Android Git Automerger
Browse files

am 0844dcd0: Merge "Revert "Addeding try/catch to card#/device# parsing in...

am 0844dcd0: Merge "Revert "Addeding try/catch to card#/device# parsing in AlsaDevicesParser.java"" into mnc-dev

* commit '0844dcd0':
  Revert "Addeding try/catch to card#/device# parsing in AlsaDevicesParser.java"
parents b50a8b97 0844dcd0
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: