From 3b7bc513adad21e84225a5270b29212008e19524 Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Fri, 3 Jan 2014 15:43:08 +0100 Subject: [PATCH] Changed RouteFragment to scroll to current item on clicking play button. --- src/com/github/nutomic/controldlna/gui/RouteFragment.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/com/github/nutomic/controldlna/gui/RouteFragment.java b/src/com/github/nutomic/controldlna/gui/RouteFragment.java index 6cf9423..91f13da 100644 --- a/src/com/github/nutomic/controldlna/gui/RouteFragment.java +++ b/src/com/github/nutomic/controldlna/gui/RouteFragment.java @@ -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();