[Android] AudioPlaylist: getLocation returns now a String and not an Array
Jean-Baptiste Kempf
git at videolan.org
Sat May 23 20:19:59 CEST 2015
vlc-ports/android | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sat May 23 19:13:44 2015 +0200| [0a895e36e1d894503dc877014c90535f124de883] | committer: Jean-Baptiste Kempf
AudioPlaylist: getLocation returns now a String and not an Array
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=0a895e36e1d894503dc877014c90535f124de883
---
.../src/org/videolan/vlc/gui/audio/AudioPlaylistAdapter.java | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlaylistAdapter.java b/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlaylistAdapter.java
index 86ff1bd..818d9d1 100644
--- a/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlaylistAdapter.java
+++ b/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlaylistAdapter.java
@@ -139,11 +139,11 @@ public class AudioPlaylistAdapter extends ArrayAdapter<MediaWrapper> {
return v;
}
- public List<String> getLocation(int position) {
- List<String> locations = new ArrayList<String>();
+ public String getLocation(int position) {
+ String location = null;
if (position >= 0 && position < getCount())
- locations.add(getItem(position).getLocation());
- return locations;
+ location = getItem(position).getLocation();
+ return location;
}
public List<String> getLocations() {
More information about the Android
mailing list