Fixed possible crash on startup.
This commit is contained in:
parent
0ea2493f1d
commit
10101ed224
1 changed files with 4 additions and 2 deletions
|
@ -582,8 +582,10 @@ OnSeekBarChangeListener, OnScrollListener {
|
|||
* When in playlist mode, scrolls to the item that is currently playing.
|
||||
*/
|
||||
public void scrollToCurrent() {
|
||||
if (mMediaRouterPlayService != null) {
|
||||
mListView.smoothScrollToPosition(
|
||||
mMediaRouterPlayService.getService().getCurrentTrack());
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Reference in a new issue