From 36662f56d577883921aa544ce451ec8dc9d0ce90 Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Wed, 19 Jun 2013 21:19:37 -0700 Subject: Only scrollToCurrent when opening up screen --- .../src/github/daneren2005/dsub/fragments/DownloadFragment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'subsonic-android/src/github') diff --git a/subsonic-android/src/github/daneren2005/dsub/fragments/DownloadFragment.java b/subsonic-android/src/github/daneren2005/dsub/fragments/DownloadFragment.java index 5b227f89..19fccfc3 100644 --- a/subsonic-android/src/github/daneren2005/dsub/fragments/DownloadFragment.java +++ b/subsonic-android/src/github/daneren2005/dsub/fragments/DownloadFragment.java @@ -837,12 +837,12 @@ public class DownloadFragment extends SubsonicFragment implements OnGestureListe } private void toggleFullscreenAlbumArt() { - scrollToCurrent(); if (playlistFlipper.getDisplayedChild() == 1) { playlistFlipper.setInAnimation(AnimationUtils.loadAnimation(context, R.anim.push_down_in)); playlistFlipper.setOutAnimation(AnimationUtils.loadAnimation(context, R.anim.push_down_out)); playlistFlipper.setDisplayedChild(0); } else { + scrollToCurrent(); playlistFlipper.setInAnimation(AnimationUtils.loadAnimation(context, R.anim.push_up_in)); playlistFlipper.setOutAnimation(AnimationUtils.loadAnimation(context, R.anim.push_up_out)); playlistFlipper.setDisplayedChild(1); -- cgit v1.2.3