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

Commit d0c49687 authored by Eric Laurent's avatar Eric Laurent
Browse files

AudioAttributes: Fix Builder.setFlags()

AudioAttributes.Builder.setFlags() is a public method and should only
allow to set public flags

Test: CTS AudioAttributesTest
Change-Id: Ib75e3487f5297f6a200ffe326c53a0f58458b51f
parent 34fc421d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -710,7 +710,7 @@ public final class AudioAttributes implements Parcelable {
         * @return the same Builder instance.
         */
        public Builder setFlags(int flags) {
            flags &= AudioAttributes.FLAG_ALL;
            flags &= AudioAttributes.FLAG_ALL_PUBLIC;
            mFlags |= flags;
            return this;
        }