Make MediaSource.Factory a nullable parameter.

In some cases, callers will need to pass in both BitmapLoader and Codec.DecoderFactory without specifying a custom MediaSource.Factory. Omitting the annotation will result in NULL_FOR_NONNULL_TYPE compilation errors in Kotlin.

PiperOrigin-RevId: 695481606
This commit is contained in:
Googler 2024-11-11 14:23:48 -08:00 committed by Copybara-Service
parent 01c784775e
commit 4acd1b970c

View File

@ -125,7 +125,7 @@ public final class DefaultAssetLoaderFactory implements AssetLoader.Factory {
Context context, Context context,
Codec.DecoderFactory decoderFactory, Codec.DecoderFactory decoderFactory,
Clock clock, Clock clock,
MediaSource.Factory mediaSourceFactory, @Nullable MediaSource.Factory mediaSourceFactory,
BitmapLoader bitmapLoader) { BitmapLoader bitmapLoader) {
this.context = context.getApplicationContext(); this.context = context.getApplicationContext();
this.decoderFactory = decoderFactory; this.decoderFactory = decoderFactory;