Skip to content

Commit

Permalink
Make MediaSource.Factory a nullable parameter.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Googler authored and copybara-github committed Nov 11, 2024
1 parent 01c7847 commit 4acd1b9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ public DefaultAssetLoaderFactory(
Context context,
Codec.DecoderFactory decoderFactory,
Clock clock,
MediaSource.Factory mediaSourceFactory,
@Nullable MediaSource.Factory mediaSourceFactory,
BitmapLoader bitmapLoader) {
this.context = context.getApplicationContext();
this.decoderFactory = decoderFactory;
Expand Down

0 comments on commit 4acd1b9

Please sign in to comment.