OSDN Git Service

Add null check for the media player when surface texture is available.
authorDoris Ling <dling@google.com>
Tue, 28 Mar 2017 18:14:34 +0000 (11:14 -0700)
committerDoris Ling <dling@google.com>
Tue, 28 Mar 2017 18:28:44 +0000 (18:28 +0000)
commit6709b6d399b2ccffcffbb0c8410577be02c3a2e5
tree6c9b1d163f990b6b307ad8d5ac08c1845629a221
parent32924e2f58625301fbb95adb5e1c9d54f97cc1d5
Add null check for the media player when surface texture is available.

- Call to MediaPlayer.create() method can return null, and hence we need
to check the return value before trying access the media player.

Change-Id: I4a5e0edbd6db21b678efb05ea733187f34185432
Fix: 36668356
Test: make RunSettingsRoboTests
src/com/android/settings/fingerprint/FingerprintLocationAnimationVideoView.java
tests/robotests/src/com/android/settings/fingerprint/FingerprintLocationAnimationVideoViewTest.java [new file with mode: 0644]