mirror of
https://github.com/androidx/media.git
synced 2025-04-29 22:36:54 +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
|
* Fix a bug where a load error in one ad may accidentally invalidate
|
||||||
another ad group.
|
another ad group.
|
||||||
* Session:
|
* Session:
|
||||||
|
* Fix a bug where passing null into `getLibraryRoot` of a `MediaBrowser`
|
||||||
|
connected to a legacy `MediaBrowserServiceCompat` produced a
|
||||||
|
`NullPointerException`.
|
||||||
* UI:
|
* UI:
|
||||||
* Downloads:
|
* Downloads:
|
||||||
* Add partial download support for progressive streams. Apps can prepare a
|
* 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.
|
// Already connected with the given extras.
|
||||||
result.set(LibraryResult.ofItem(createRootMediaItem(browserCompat), null));
|
result.set(LibraryResult.ofItem(createRootMediaItem(browserCompat), null));
|
||||||
} else {
|
} else {
|
||||||
Bundle rootHints = LegacyConversions.convertToRootHints(params);
|
Bundle rootHints =
|
||||||
|
params == null ? new Bundle() : LegacyConversions.convertToRootHints(params);
|
||||||
rootHints.putInt(
|
rootHints.putInt(
|
||||||
androidx.media3.session.legacy.MediaConstants
|
androidx.media3.session.legacy.MediaConstants
|
||||||
.BROWSER_ROOT_HINTS_KEY_CUSTOM_BROWSER_ACTION_LIMIT,
|
.BROWSER_ROOT_HINTS_KEY_CUSTOM_BROWSER_ACTION_LIMIT,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user