Ensure the state is updated when needed
This commit is contained in:
1 parent
0f58de6edb
commit
2fb8ec71f0
1 file changed
+3
@@ -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));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user