[Android] Audio player: fix the position of the playlist top overlay shadow on old Android versions

Adrien Maglo git at videolan.org
Tue Feb 18 12:22:47 CET 2014


vlc-ports/android | branch: master | Adrien Maglo <magsoft at videolan.org> | Tue Feb 18 12:22:36 2014 +0100| [d386f1ed3f3633491699852e9e482ef0d93d6e9b] | committer: Adrien Maglo

Audio player: fix the position of the playlist top overlay shadow on old Android versions

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

 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 53d3360..2a4a2c5 100644
--- a/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlaylistView.java
+++ b/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlaylistView.java
@@ -151,7 +151,7 @@ public class AudioPlaylistView extends ListView {
         mShadowDrawable.setBounds(left, top, right, bottom);
         mShadowDrawable.draw(c);
 
-        c.rotate(180, c.getWidth() / 2, c.getHeight() / 2);
+        c.rotate(180, getWidth() / 2, getHeight() / 2);
 
         mShadowDrawable.setBounds(left, top, right, bottom);
         mShadowDrawable.draw(c);



More information about the Android mailing list