Backporting CB-1605

This commit is contained in:
Joe Bowser 2013-10-16 12:03:03 -07:00
parent cdb49eaa1f
commit 6a57a3c452

View File

@ -537,6 +537,7 @@ public class AudioPlayer implements OnCompletionListener, OnPreparedListener, On
if (fp.exists()) {
FileInputStream fileInputStream = new FileInputStream(file);
this.player.setDataSource(fileInputStream.getFD());
fileInputStream.close();
}
else {
this.player.setDataSource("/sdcard/" + file);