Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/fix-audio-focus-abandon-pre-o.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"client-sdk-android": patch
---

Fixed audio focus not being abandoned on pre-O devices due to mismatched listener instance.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2023-2024 LiveKit, Inc.
* Copyright 2023-2025 LiveKit, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -97,7 +97,7 @@ constructor(context: Context) : AudioHandler {
audioRequest = null
} else {
@Suppress("DEPRECATION")
audioManager.abandonAudioFocus(onAudioFocusChangeListener)
audioManager.abandonAudioFocus(audioFocusListener)
}
}

Expand Down