From 37d47e1d131ebc085af84bb7b4f614b567f9fb52 Mon Sep 17 00:00:00 2001 From: ibaker Date: Fri, 4 Feb 2022 10:10:41 +0000 Subject: [PATCH] Mark LegacyPlayerView as deprecated This type is still known as PlayerView in exoplayer2 #minor-release PiperOrigin-RevId: 426348286 --- .../ui/src/main/java/androidx/media3/ui/LegacyPlayerView.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libraries/ui/src/main/java/androidx/media3/ui/LegacyPlayerView.java b/libraries/ui/src/main/java/androidx/media3/ui/LegacyPlayerView.java index e1b3e4d3bc..5c2bd1545f 100644 --- a/libraries/ui/src/main/java/androidx/media3/ui/LegacyPlayerView.java +++ b/libraries/ui/src/main/java/androidx/media3/ui/LegacyPlayerView.java @@ -252,7 +252,10 @@ import org.checkerframework.checker.nullness.qual.RequiresNonNull; * single instance in a layout file. This is achieved by setting the {@code player_layout_id} * attribute on a LegacyPlayerView. This will cause the specified layout to be inflated instead of * {@code exo_legacy_player_view.xml} for only the instance on which the attribute is set. + * + * @deprecated Use {@link PlayerView} instead. */ +@Deprecated @UnstableApi public class LegacyPlayerView extends FrameLayout implements AdViewProvider {