forked from androidx/media
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use media button broadcast receiver above Android 31
This change avoids using a framework API that is deprecated since API 31 and works around difficulties with this deprecated API on devices from some manufacturers on API 33/34. Manually tested with BT headphone connected to: - Samsung SM-G920F (API 24) - Pixel (API 28) - Samsung SM-A515W (API 33) - Pixel 6 Pro (API 33) (verified manually with devices and adb output of dumpsys) Issue: androidx#167 PiperOrigin-RevId: 562890206
- Loading branch information
1 parent
afe2d8a
commit d524bcd
Showing
2 changed files
with
50 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters