Ensure the state is updated when needed

This commit is contained in:
Christopher Eby 2010-05-22 17:06:13 -05:00
parent 0f58de6edb
commit 2fb8ec71f0

View File

@ -139,6 +139,9 @@ public class SongSelector extends PlaybackActivity implements AdapterView.OnItem
if (ContextApplication.hasService()) {
PlaybackService service = ContextApplication.getService();
// Force the state to be updated, even if PlaybackActivity has
// already loaded it.
mState = -1;
setState(service.getState());
onSongChange(service.getSong(0));
}