Add @OptIn to fields in demo PlayerActivity now this is supported

This is possible now we use `annotation-experimental:1.3.1`.

#minor-release

PiperOrigin-RevId: 582315579
(cherry picked from commit 8d83d491f198fbe3a21181df235dfff314252929)
This commit is contained in:
ibaker 2023-11-14 07:31:08 -08:00 committed by Ian Baker
parent f90726a78d
commit 1b83c59759

View File

@ -93,11 +93,11 @@ public class PlayerActivity extends AppCompatActivity
@Nullable private AdsLoader clientSideAdsLoader; @Nullable private AdsLoader clientSideAdsLoader;
// TODO: Annotate this and serverSideAdsLoaderState below with @OptIn when it can be applied to @OptIn(markerClass = UnstableApi.class)
// fields (needs http://r.android.com/2004032 to be released into a version of @Nullable
// androidx.annotation:annotation-experimental). private ImaServerSideAdInsertionMediaSource.AdsLoader serverSideAdsLoader;
@Nullable private ImaServerSideAdInsertionMediaSource.AdsLoader serverSideAdsLoader;
@OptIn(markerClass = UnstableApi.class)
private ImaServerSideAdInsertionMediaSource.AdsLoader.@MonotonicNonNull State private ImaServerSideAdInsertionMediaSource.AdsLoader.@MonotonicNonNull State
serverSideAdsLoaderState; serverSideAdsLoaderState;