[Android] AudioServiceController: fix nonsensical function prototype
Edward Wang
git at videolan.org
Thu Aug 29 18:26:36 CEST 2013
vlc-ports/android | branch: master | Edward Wang <edward.c.wang at compdigitec.com> | Thu Aug 29 17:35:50 2013 +0200| [eb0002ba624ef1a7ec8b8d4fb503260765e9c57a] | committer: Edward Wang
AudioServiceController: fix nonsensical function prototype
A single string cannot have an index.
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=eb0002ba624ef1a7ec8b8d4fb503260765e9c57a
---
vlc-android/src/org/videolan/vlc/AudioServiceController.java | 4 ++--
vlc-android/src/org/videolan/vlc/gui/DirectoryViewFragment.java | 2 +-
vlc-android/src/org/videolan/vlc/gui/video/VideoGridFragment.java | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/vlc-android/src/org/videolan/vlc/AudioServiceController.java b/vlc-android/src/org/videolan/vlc/AudioServiceController.java
index f221e5c..2e0779a 100644
--- a/vlc-android/src/org/videolan/vlc/AudioServiceController.java
+++ b/vlc-android/src/org/videolan/vlc/AudioServiceController.java
@@ -212,10 +212,10 @@ public class AudioServiceController implements IAudioPlayerControl {
load(mediaPathList, position, false);
}
- public void load(String mediaPath, int position, boolean noVideo) {
+ public void load(String mediaPath, boolean noVideo) {
ArrayList<String> arrayList = new ArrayList<String>();
arrayList.add(mediaPath);
- load(arrayList, position, noVideo);
+ load(arrayList, 0, noVideo);
}
public void load(List<String> mediaPathList, int position, boolean noVideo) {
diff --git a/vlc-android/src/org/videolan/vlc/gui/DirectoryViewFragment.java b/vlc-android/src/org/videolan/vlc/gui/DirectoryViewFragment.java
index 1322a0d..5a7f6cd 100644
--- a/vlc-android/src/org/videolan/vlc/gui/DirectoryViewFragment.java
+++ b/vlc-android/src/org/videolan/vlc/gui/DirectoryViewFragment.java
@@ -142,7 +142,7 @@ public class DirectoryViewFragment extends SherlockListFragment implements ISort
});
alertDialog.show();
} else if(id == R.id.directory_view_play_audio) {
- AudioServiceController.getInstance().load(mediaLocation, 0, true);
+ AudioServiceController.getInstance().load(mediaLocation, true);
AudioPlayerActivity.start(getActivity());
} else if(id == R.id.directory_view_play_video) {
VideoPlayerActivity.start(getActivity(), mediaLocation);
diff --git a/vlc-android/src/org/videolan/vlc/gui/video/VideoGridFragment.java b/vlc-android/src/org/videolan/vlc/gui/video/VideoGridFragment.java
index 6b6989a..4c6cb04 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoGridFragment.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoGridFragment.java
@@ -263,7 +263,7 @@ public class VideoGridFragment extends SherlockGridFragment implements ISortable
protected void playAudio(int position) {
Media item = (Media) getListAdapter().getItem(position);
- AudioServiceController.getInstance().load(item.getLocation(), 0, true);
+ AudioServiceController.getInstance().load(item.getLocation(), true);
AudioPlayerActivity.start(getActivity());
}
More information about the Android
mailing list