commit | a0a955f814307c65c872ad6d02e008e6ad2b5a6e | [log] [tgz] |
---|---|---|
author | Jeff Sharkey <jsharkey@android.com> | Wed Feb 13 15:35:37 2019 -0700 |
committer | Jeff Sharkey <jsharkey@android.com> | Wed Feb 13 15:35:39 2019 -0700 |
tree | 9178fb85383a45934f15a6f63d0733fae1408212 | |
parent | 55a17dca19d21b828bbec03d4bb08fcd413fb414 [diff] |
Set MediaPlayer sources in more direct fashion. As part of the isolated storage work in Q, some filesystem paths don't actually exist. It's safer to simply try opening the file and let FileInputStream throw a FileNotFoundException. This change results in more descriptive errors to developers, without changing the behavior of throwing an IOException if the file doesn't exist. Bug: 124208701 Test: manual Change-Id: I4710a55431d8dc6cb96561f551b34892d8c15ba5