media/libraries/ui
ibaker 7d3375c6ec Fix recursive loop when registering controller visibility listeners
There are two overloads of this method due to a type 'rename' from
`PlayerControlView.VisibilityListener` to
`PlayerView.ControllerVisibilityListener`. Currently when you call one
overload it passes `null` to the other one (to clear the other listener).
Unfortunately this results in it clearing itself, because it receives
a null call back!

This change tweaks the documentation to clarify that the 'other'
listener is only cleared if you pass a non-null listener in. This solves
the recursive problem, and allows the 'legacy' visibility listener to be
successfully registered.

Issue: androidx/media#229

#minor-release

PiperOrigin-RevId: 496876397
(cherry picked from commit 4087a011e2)
2023-01-25 18:17:16 +00:00
..
src Fix recursive loop when registering controller visibility listeners 2023-01-25 18:17:16 +00:00
build.gradle Add lint base xml file for string.xml files 2022-06-16 13:05:17 +00:00
lint-baseline.xml Add lint base xml file for string.xml files 2022-06-16 13:05:17 +00:00
proguard-rules.txt Remove LegacyPlayerView reference from comment in proguard-rules.txt 2022-02-07 10:50:22 +00:00
README.md Add javadoc links to README files 2023-01-25 18:01:21 +00:00

UI module

Provides UI components for media playback.

Getting the module

The easiest way to use the module is to add it as a gradle dependency:

implementation 'androidx.media3:media3-ui:1.X.X'

where 1.X.X is the version, which must match the version of the other media modules being used.

Alternatively, you can clone this GitHub project and depend on the module locally. Instructions for doing this can be found in the top level README.