mirror of
https://github.com/androidx/media.git
synced 2025-05-04 14:10:40 +08:00

As reported in Issue: androidx/media#1493 we already use `HEADSETHOOK` to start waiting for a double-tap, but we don't consider it for the second tap. Similarly, we previously considered `PLAY` for the second tap, but not the first. Only `HEADSETHOOK` and `PLAY_PAUSE` are [documented](https://developer.android.com/reference/androidx/media3/session/MediaSession#media-key-events-mapping) to transform double-tap to `seekToNext`. So this change removes the `PLAY` detection from the second tap. #cherrypick PiperOrigin-RevId: 651017522