Don't start playback on startup
This commit is contained in:
parent
e96ec2b2a6
commit
c1324ff366
@ -339,7 +339,8 @@ public class MusicPlayer implements Runnable, MediaPlayer.OnCompletionListener,
|
||||
mMediaPlayer.reset();
|
||||
mMediaPlayer.setDataSource(song.path);
|
||||
mMediaPlayer.prepare();
|
||||
play();
|
||||
if (mState == STATE_PLAYING)
|
||||
play();
|
||||
} catch (IOException e) {
|
||||
Log.e("Tumult", "IOException", e);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user