[Android] Set bitmap size in pixels

Geoffrey Métais git at videolan.org
Tue Jan 10 10:51:09 CET 2017


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Mon Jan  9 18:34:52 2017 +0100| [9da3ac7cd3020e4daa567c1159766fc997ab04c4] | committer: Geoffrey Métais

Set bitmap size in pixels

> https://code.videolan.org/videolan/vlc-android/commit/9da3ac7cd3020e4daa567c1159766fc997ab04c4
---

 vlc-android/src/org/videolan/vlc/gui/helpers/AudioUtil.java | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/vlc-android/src/org/videolan/vlc/gui/helpers/AudioUtil.java b/vlc-android/src/org/videolan/vlc/gui/helpers/AudioUtil.java
index a7fe2a2..8b15eef 100644
--- a/vlc-android/src/org/videolan/vlc/gui/helpers/AudioUtil.java
+++ b/vlc-android/src/org/videolan/vlc/gui/helpers/AudioUtil.java
@@ -377,10 +377,9 @@ public class AudioUtil {
         }
     }
 
-    public static Bitmap readCoverBitmap(String path, int dipWidth) {
+    public static Bitmap readCoverBitmap(String path, int width) {
         Bitmap cover = null;
         BitmapFactory.Options options = new BitmapFactory.Options();
-        int width = UiTools.convertDpToPx(dipWidth);
 
         /* Get the resolution of the bitmap without allocating the memory */
         options.inJustDecodeBounds = true;



More information about the Android mailing list