Allow STATE_NO_MEDIA to be unset
This commit is contained in:
parent
8c499cdff2
commit
d7f3eaa442
@ -281,8 +281,12 @@ public class MusicPlayer implements Runnable, MediaPlayer.OnCompletionListener,
|
|||||||
private void retrieveSongs()
|
private void retrieveSongs()
|
||||||
{
|
{
|
||||||
mSongs = Song.getAllSongs();
|
mSongs = Song.getAllSongs();
|
||||||
if (mSongs == null && mState != STATE_NO_MEDIA)
|
if (mSongs == null) {
|
||||||
setState(STATE_NO_MEDIA);
|
setState(STATE_NO_MEDIA);
|
||||||
|
} else {
|
||||||
|
if (mState == STATE_NO_MEDIA)
|
||||||
|
setState(STATE_NORMAL);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private Notification createNotfication()
|
private Notification createNotfication()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user