Don't start playback on startup

This commit is contained in:
Christopher Eby 2010-02-19 18:50:40 -06:00
parent e96ec2b2a6
commit c1324ff366

View File

@ -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);
}