[Android] Audio browser: do not enable the selection of the separators
Adrien Maglo
git at videolan.org
Tue Nov 19 22:34:12 CET 2013
vlc-ports/android | branch: master | Adrien Maglo <magsoft at videolan.org> | Tue Nov 19 22:33:58 2013 +0100| [2b0d2365331215595fd63b174bdd7a003c0248c3] | committer: Adrien Maglo
Audio browser: do not enable the selection of the separators
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=2b0d2365331215595fd63b174bdd7a003c0248c3
---
.../src/org/videolan/vlc/gui/audio/AudioBrowserListAdapter.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserListAdapter.java b/vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserListAdapter.java
index 568ef47..3bb8e3a 100644
--- a/vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserListAdapter.java
+++ b/vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserListAdapter.java
@@ -266,12 +266,12 @@ public class AudioBrowserListAdapter extends BaseAdapter implements ListAdapter
@Override
public boolean areAllItemsEnabled() {
- return true;
+ return false;
}
@Override
public boolean isEnabled(int position) {
- return true;
+ return !mItems.get(position).mIsSeparator;
}
public ArrayList<Media> getMedia(int position) {
More information about the Android
mailing list