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

Commit 94160d6a authored by Eric Laurent's avatar Eric Laurent Committed by Android (Google) Code Review
Browse files

Merge "AudioAttributes: add missing stream type to conversions"

parents 00255166 9b57d573
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -1187,6 +1187,9 @@ public final class AudioAttributes implements Parcelable {
                    case AudioSystem.STREAM_ACCESSIBILITY:
                        mContentType = CONTENT_TYPE_SPEECH;
                        break;
                    case AudioSystem.STREAM_ASSISTANT:
                        mContentType = CONTENT_TYPE_SPEECH;
                        break;
                    default:
                        Log.e(TAG, "Invalid stream type " + streamType + " for AudioAttributes");
                }
@@ -1611,6 +1614,8 @@ public final class AudioAttributes implements Parcelable {
                return USAGE_VOICE_COMMUNICATION_SIGNALLING;
            case AudioSystem.STREAM_ACCESSIBILITY:
                return USAGE_ASSISTANCE_ACCESSIBILITY;
            case AudioSystem.STREAM_ASSISTANT:
                return USAGE_ASSISTANT;
            case AudioSystem.STREAM_TTS:
            default:
                return USAGE_UNKNOWN;