[Android] Fix cast

Geoffrey Métais git at videolan.org
Wed Feb 18 13:42:34 CET 2015


vlc-ports/android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Wed Feb 18 13:28:12 2015 +0100| [90a008edff87c3e6d93fc6eba97d543d699069c2] | committer: Geoffrey Métais

Fix cast

CID #1226359

> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=90a008edff87c3e6d93fc6eba97d543d699069c2
---

 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 8ef552e..a0931e9 100644
--- a/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlaylistView.java
+++ b/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlaylistView.java
@@ -134,7 +134,7 @@ public class AudioPlaylistView extends ListView {
         if (mIsDragging) {
             canvas.save();
             // Position the drag shadow.
-            float posY = mTouchY - (float)mDragShadow.getMeasuredHeight() / 2;
+            float posY = mTouchY - (float)mDragShadow.getMeasuredHeight() / 2f;
             canvas.translate(0, posY);
             mDragShadow.draw(canvas);
             canvas.restore();



More information about the Android mailing list