[Android] Annotate readCoverBitmap for threaded calls

Geoffrey Métais git at videolan.org
Fri Jun 16 16:36:06 CEST 2017


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Fri Jun 16 15:29:54 2017 +0200| [6a67a73d1bd05a982a9893e307bd5f38a0f712fe] | committer: Geoffrey Métais

Annotate readCoverBitmap for threaded calls

> https://code.videolan.org/videolan/vlc-android/commit/6a67a73d1bd05a982a9893e307bd5f38a0f712fe
---

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

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 864890295..e2a5af729 100644
--- a/vlc-android/src/org/videolan/vlc/gui/helpers/AudioUtil.java
+++ b/vlc-android/src/org/videolan/vlc/gui/helpers/AudioUtil.java
@@ -31,6 +31,7 @@ import android.graphics.BitmapFactory;
 import android.media.RingtoneManager;
 import android.net.Uri;
 import android.provider.MediaStore;
+import android.support.annotation.WorkerThread;
 import android.text.TextUtils;
 import android.util.Log;
 import android.widget.Toast;
@@ -377,6 +378,7 @@ public class AudioUtil {
         }
     }
 
+    @WorkerThread
     public static Bitmap readCoverBitmap(String path, int width) {
         if (path == null)
             return null;



More information about the Android mailing list