Changed RouteFragment to scroll to current item on clicking play button.
This commit is contained in:
parent
b98df87408
commit
3b7bc513ad
1 changed files with 3 additions and 1 deletions
|
@ -385,8 +385,10 @@ public class RouteFragment extends MediaRouteDiscoveryFragment implements
|
|||
case R.id.playpause:
|
||||
if (mPlaying)
|
||||
s.pause();
|
||||
else
|
||||
else {
|
||||
s.resume();
|
||||
mListView.smoothScrollToPosition(s.getCurrentTrack());
|
||||
}
|
||||
break;
|
||||
case R.id.shuffle:
|
||||
s.toggleShuffleEnabled();
|
||||
|
|
Reference in a new issue