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

Commit 588e0303 authored by Jean-Michel Trivi's avatar Jean-Michel Trivi Committed by Android (Google) Code Review
Browse files

Merge "AudioAttributes: IAE for illegal usage / content type values."

parents 4e461186 d8aaf45d
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -670,7 +670,7 @@ public final class AudioAttributes implements Parcelable {
                    mUsage = usage;
                    break;
                default:
                    mUsage = USAGE_UNKNOWN;
                    throw new IllegalArgumentException("Invalid usage " + usage);
            }
            return this;
        }
@@ -696,7 +696,7 @@ public final class AudioAttributes implements Parcelable {
                    mContentType = contentType;
                    break;
                default:
                    mContentType = CONTENT_TYPE_UNKNOWN;
                    throw new IllegalArgumentException("Invalid content type " + contentType);
            }
            return this;
        }