[Android] Annotate browse method threaded calls

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


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

Annotate browse method threaded calls

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

 vlc-android/src/org/videolan/vlc/media/BrowserProvider.java | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/vlc-android/src/org/videolan/vlc/media/BrowserProvider.java b/vlc-android/src/org/videolan/vlc/media/BrowserProvider.java
index 3550da932..1876bd8c8 100644
--- a/vlc-android/src/org/videolan/vlc/media/BrowserProvider.java
+++ b/vlc-android/src/org/videolan/vlc/media/BrowserProvider.java
@@ -29,6 +29,7 @@ import android.graphics.Bitmap;
 import android.graphics.BitmapFactory;
 import android.net.Uri;
 import android.support.annotation.NonNull;
+import android.support.annotation.WorkerThread;
 import android.support.v4.media.MediaBrowserCompat;
 import android.support.v4.media.MediaDescriptionCompat;
 
@@ -64,6 +65,7 @@ public class BrowserProvider {
     public static final String PLAYLIST_PREFIX = "playlist";
     public static final int MAX_HISTORY_SIZE = 50;
 
+    @WorkerThread
     public static List<MediaBrowserCompat.MediaItem> browse(String parentId) {
         ArrayList<MediaBrowserCompat.MediaItem> results = new ArrayList<>();
         MediaLibraryItem[] list = null;



More information about the Android mailing list