mirror of
https://github.com/androidx/media.git
synced 2025-04-29 14:26:50 +08:00
Fix NullPointerException in MediaBrowserImplLegacy
PiperOrigin-RevId: 748312932
This commit is contained in:
parent
5d540acbeb
commit
a64d51c909
@ -50,6 +50,9 @@
|
||||
* Fix a bug where a load error in one ad may accidentally invalidate
|
||||
another ad group.
|
||||
* Session:
|
||||
* Fix a bug where passing null into `getLibraryRoot` of a `MediaBrowser`
|
||||
connected to a legacy `MediaBrowserServiceCompat` produced a
|
||||
`NullPointerException`.
|
||||
* UI:
|
||||
* Downloads:
|
||||
* Add partial download support for progressive streams. Apps can prepare a
|
||||
|
@ -132,7 +132,8 @@ import org.checkerframework.checker.initialization.qual.UnderInitialization;
|
||||
// Already connected with the given extras.
|
||||
result.set(LibraryResult.ofItem(createRootMediaItem(browserCompat), null));
|
||||
} else {
|
||||
Bundle rootHints = LegacyConversions.convertToRootHints(params);
|
||||
Bundle rootHints =
|
||||
params == null ? new Bundle() : LegacyConversions.convertToRootHints(params);
|
||||
rootHints.putInt(
|
||||
androidx.media3.session.legacy.MediaConstants
|
||||
.BROWSER_ROOT_HINTS_KEY_CUSTOM_BROWSER_ACTION_LIMIT,
|
||||
|
Loading…
x
Reference in New Issue
Block a user