KotlinAudio icon indicating copy to clipboard operation
KotlinAudio copied to clipboard

fix: fix duplicate notification button on Android 13+

Open ouabing opened this issue 8 months ago • 0 comments

I've noticed some custom systems like ColorOS 13+ (default system on OnePlus and Oppo devices) still support forward and rewind actions, however KotlinAudio will try to add additional custom actions if it's on Android 13+(as https://developer.android.com/about/versions/13/behavior-changes-13?hl=zh-cn#playback-controls suggests), which causes duplicate actions on such kind of devices.

This PR avoids add duplicate controls to exoplayer when we already added custom action buttons.

20240531-144645

ouabing avatar May 31 '24 07:05 ouabing