Fix FATAL EXCEPTION when Widevine Classic libraries are not found on device.

On device that does not support Widevince Classic playback, display
a Toast pop up to inform users. This prevents a FATAL EXCEPTION from
occuring when acquireDrmInfo() returns a null response in the absence
of Widevine Classic libs.

To test this mode, rename libwvdrm_L?.so in system/vendor/lib and reboot.

bug: 28964035

Change-Id: Ib47d4b3419a6395d402c1b78f3cdc8472b0d6946
This commit is contained in:
Edwin Wong
2016-06-01 13:05:20 -07:00
parent b21a992969
commit afd3d7928f
3 changed files with 27 additions and 8 deletions

View File

@@ -19,4 +19,5 @@
<string name="drm_server">Drm Server</string>
<string name="portal_id">Portal Name</string>
<string name="update_button">Update Button</string>
<string name="no_classic">This device does not support Widevine classic playback."</string>
</resources>