[Android] Audio browser: fix the restoration of the header scroll state on activity resume.
Adrien Maglo
git at videolan.org
Fri Nov 15 21:18:22 CET 2013
vlc-ports/android | branch: master | Adrien Maglo <magsoft at videolan.org> | Fri Nov 15 21:18:13 2013 +0100| [d15259e105d26a4905be1dd29532467c8edf802f] | committer: Adrien Maglo
Audio browser: fix the restoration of the header scroll state on activity resume.
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=d15259e105d26a4905be1dd29532467c8edf802f
---
vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserFragment.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserFragment.java b/vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserFragment.java
index ad71d8e..6333ef0 100644
--- a/vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserFragment.java
+++ b/vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserFragment.java
@@ -380,7 +380,7 @@ public class AudioBrowserFragment extends SherlockFragment implements ISortable
}
private void headerScrollTab(int tab) {
- headerScroll((float)tab * (1/(MODE_TOTAL - 1)));
+ headerScroll((float)tab / (MODE_TOTAL - 1));
}
/**
More information about the Android
mailing list