Audio stream type is set, to get rid of an annoying repetitive system log message :)
This commit is contained in:
parent
87a69df59e
commit
6564986f52
1 changed files with 1 additions and 0 deletions
|
|
@ -298,6 +298,7 @@ public class MusicService extends Service implements MediaPlayer.OnPreparedListe
|
|||
if (position != -1) {
|
||||
try {
|
||||
Uri trackUri = getCurrentPositionTrackUri();
|
||||
player.setAudioStreamType(AudioManager.STREAM_MUSIC);
|
||||
player.setDataSource(getApplicationContext(), trackUri);
|
||||
player.prepareAsync();
|
||||
} catch (Exception e) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue