[Android] Audio browser: trigger the playback when clicking on a playlist item
Adrien Maglo
git at videolan.org
Thu Nov 28 00:31:02 CET 2013
vlc-ports/android | branch: master | Adrien Maglo <magsoft at videolan.org> | Thu Nov 28 00:30:52 2013 +0100| [5a5b30498c677959c7d4eac14989389d9b68cf0e] | committer: Adrien Maglo
Audio browser: trigger the playback when clicking on a playlist item
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=5a5b30498c677959c7d4eac14989389d9b68cf0e
---
.../src/org/videolan/vlc/gui/audio/AudioPlayerFragment.java | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayerFragment.java b/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayerFragment.java
index e7650a6..2361bf0 100644
--- a/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayerFragment.java
+++ b/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayerFragment.java
@@ -47,10 +47,12 @@ import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
+import android.widget.AdapterView;
import android.widget.ImageButton;
import android.widget.ImageView;
import android.widget.ListView;
import android.widget.SeekBar;
+import android.widget.AdapterView.OnItemClickListener;
import android.widget.SeekBar.OnSeekBarChangeListener;
import android.widget.TextView;
import android.widget.Toast;
@@ -174,6 +176,12 @@ public class AudioPlayerFragment extends SherlockFragment implements IAudioPlaye
showAdvancedOptions(v);
}
});
+ mSongsList.setOnItemClickListener(new OnItemClickListener() {
+ @Override
+ public void onItemClick(AdapterView<?> av, View v, int p, long id) {
+ mAudioController.load(mSongsListAdapter.getLocations(), p);
+ }
+ });
View.OnFocusChangeListener listener = new View.OnFocusChangeListener() {
@Override
More information about the Android
mailing list