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:
|
case R.id.playpause:
|
||||||
if (mPlaying)
|
if (mPlaying)
|
||||||
s.pause();
|
s.pause();
|
||||||
else
|
else {
|
||||||
s.resume();
|
s.resume();
|
||||||
|
mListView.smoothScrollToPosition(s.getCurrentTrack());
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case R.id.shuffle:
|
case R.id.shuffle:
|
||||||
s.toggleShuffleEnabled();
|
s.toggleShuffleEnabled();
|
||||||
|
|
Reference in a new issue