[Android] Add browser adapter get(position) method

Geoffrey Métais git at videolan.org
Wed Jul 26 11:33:12 CEST 2017


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Wed Jul 26 11:31:09 2017 +0200| [78ef02cc2185933c8e63311d019157f90c1801cf] | committer: Geoffrey Métais

Add browser adapter get(position) method

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

 vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserAdapter.java | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserAdapter.java b/vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserAdapter.java
index 5f29532e6..9cac2eff5 100644
--- a/vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserAdapter.java
+++ b/vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserAdapter.java
@@ -122,6 +122,10 @@ public class BaseBrowserAdapter extends SortableAdapter<MediaLibraryItem, BaseBr
         return mDataset.size();
     }
 
+    public MediaLibraryItem get(int position) {
+        return mDataset.get(position);
+    }
+
     public abstract class ViewHolder<T extends ViewDataBinding> extends RecyclerView.ViewHolder {
 
         public T binding;



More information about the Android mailing list