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

Commit 96d7fac4 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "AudioTrack: Enable CONTENT_TYPE_SPEECH for automatic power savings" into main am: 1b6139e1

parents 1b7f45a1 1b6139e1
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1797,6 +1797,7 @@ public class AudioTrack extends PlayerBase
                (flags != 0  // cannot have any special flags
                || attributes.getUsage() != AudioAttributes.USAGE_MEDIA
                || (attributes.getContentType() != AudioAttributes.CONTENT_TYPE_UNKNOWN
                    && attributes.getContentType() != AudioAttributes.CONTENT_TYPE_SPEECH
                    && attributes.getContentType() != AudioAttributes.CONTENT_TYPE_MUSIC
                    && attributes.getContentType() != AudioAttributes.CONTENT_TYPE_MOVIE))) {
            return false;