mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00: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
1 changed files with 2 additions and 2 deletions
|
|
@ -348,7 +348,7 @@ public class SampleChooserActivity extends AppCompatActivity
|
||||||
String subtitleLanguage = null;
|
String subtitleLanguage = null;
|
||||||
UUID drmUuid = null;
|
UUID drmUuid = null;
|
||||||
String drmLicenseUri = null;
|
String drmLicenseUri = null;
|
||||||
ImmutableMap<String, String> drmLicenseRequestHeaders = null;
|
ImmutableMap<String, String> drmLicenseRequestHeaders = ImmutableMap.of();
|
||||||
boolean drmSessionForClearContent = false;
|
boolean drmSessionForClearContent = false;
|
||||||
boolean drmMultiSession = false;
|
boolean drmMultiSession = false;
|
||||||
boolean drmForceDefaultLicenseUri = false;
|
boolean drmForceDefaultLicenseUri = false;
|
||||||
|
|
@ -453,7 +453,7 @@ public class SampleChooserActivity extends AppCompatActivity
|
||||||
} else {
|
} else {
|
||||||
checkState(drmLicenseUri == null, "drm_uuid is required if drm_license_uri is set.");
|
checkState(drmLicenseUri == null, "drm_uuid is required if drm_license_uri is set.");
|
||||||
checkState(
|
checkState(
|
||||||
drmLicenseRequestHeaders == null,
|
drmLicenseRequestHeaders.isEmpty(),
|
||||||
"drm_uuid is required if drm_key_request_properties is set.");
|
"drm_uuid is required if drm_key_request_properties is set.");
|
||||||
checkState(
|
checkState(
|
||||||
!drmSessionForClearContent,
|
!drmSessionForClearContent,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue