Changed RouteFragment to scroll to current item on clicking play button.

This commit is contained in:
Felix Ableitner 2014-01-03 15:43:08 +01:00
parent b98df87408
commit 3b7bc513ad

View file

@ -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();