mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08:00
Demo: Fix NPE in SampleChooserActivity
This prevents the demo app loading media.exolist.json. The exception
was introduced by
8fd1381a84
PiperOrigin-RevId: 403973062
This commit is contained in:
parent
dd23cb13da
commit
422e68b48d
@ -348,7 +348,7 @@ public class SampleChooserActivity extends AppCompatActivity
|
||||
String subtitleLanguage = null;
|
||||
UUID drmUuid = null;
|
||||
String drmLicenseUri = null;
|
||||
ImmutableMap<String, String> drmLicenseRequestHeaders = null;
|
||||
ImmutableMap<String, String> drmLicenseRequestHeaders = ImmutableMap.of();
|
||||
boolean drmSessionForClearContent = false;
|
||||
boolean drmMultiSession = false;
|
||||
boolean drmForceDefaultLicenseUri = false;
|
||||
@ -453,7 +453,7 @@ public class SampleChooserActivity extends AppCompatActivity
|
||||
} else {
|
||||
checkState(drmLicenseUri == null, "drm_uuid is required if drm_license_uri is set.");
|
||||
checkState(
|
||||
drmLicenseRequestHeaders == null,
|
||||
drmLicenseRequestHeaders.isEmpty(),
|
||||
"drm_uuid is required if drm_key_request_properties is set.");
|
||||
checkState(
|
||||
!drmSessionForClearContent,
|
||||
|
Loading…
x
Reference in New Issue
Block a user