[Android] Audio player: fix the wrong positioning of the dragged media item
Adrien Maglo
git at videolan.org
Thu Jan 23 20:10:10 CET 2014
vlc-ports/android | branch: master | Adrien Maglo <magsoft at videolan.org> | Thu Jan 23 20:10:00 2014 +0100| [85dd3e62896b25eb3f2c1a0a81dadf905f3a948c] | committer: Adrien Maglo
Audio player: fix the wrong positioning of the dragged media item
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=85dd3e62896b25eb3f2c1a0a81dadf905f3a948c
---
vlc-android/src/org/videolan/vlc/gui/audio/AudioPlaylistView.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlaylistView.java b/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlaylistView.java
index 2347d0b..b8b8131 100644
--- a/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlaylistView.java
+++ b/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlaylistView.java
@@ -123,7 +123,7 @@ public class AudioPlaylistView extends ListView {
if (mIsDragging) {
canvas.save();
// Position the drag shadow.
- float posY = mTouchY + mDragShadow.getHeight() / 2;
+ float posY = mTouchY - mDragShadow.getMeasuredHeight() / 2;
canvas.translate(0, posY);
mDragShadow.draw(canvas);
canvas.restore();
More information about the Android
mailing list