[Android] Audio player: remove useless sorting code for the playlist
Adrien Maglo
git at videolan.org
Fri Dec 6 16:16:24 CET 2013
vlc-ports/android | branch: master | Adrien Maglo <magsoft at videolan.org> | Fri Dec 6 16:14:25 2013 +0100| [a9a93d9f1c0c4a21941e00a8db06ba4c0f32f1ce] | committer: Adrien Maglo
Audio player: remove useless sorting code for the playlist
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=a9a93d9f1c0c4a21941e00a8db06ba4c0f32f1ce
---
.../videolan/vlc/gui/audio/AudioPlayerFragment.java | 18 ------------------
1 file changed, 18 deletions(-)
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 f1f2dd4..566109b 100644
--- a/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayerFragment.java
+++ b/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayerFragment.java
@@ -20,7 +20,6 @@
package org.videolan.vlc.gui.audio;
import java.util.ArrayList;
-import java.util.Collections;
import org.videolan.libvlc.LibVLC;
import org.videolan.libvlc.Media;
import org.videolan.vlc.AudioServiceController;
@@ -84,11 +83,6 @@ public class AudioPlayerFragment extends SherlockFragment implements IAudioPlaye
private AudioListAdapter mSongsListAdapter;
- public final static int SORT_BY_TITLE = 0;
- public final static int SORT_BY_LENGTH = 1;
- private boolean mSortReverse = false;
- private int mSortBy = SORT_BY_TITLE;
-
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
@@ -316,18 +310,6 @@ public class AudioPlayerFragment extends SherlockFragment implements IAudioPlaye
currentItem = mAudioController.getCurrentMediaLocation();
mSongsListAdapter.clear();
- switch (mSortBy) {
- case SORT_BY_LENGTH:
- Collections.sort(audioList, MediaComparators.byLength);
- break;
- case SORT_BY_TITLE:
- default:
- Collections.sort(audioList, MediaComparators.byMRL);
- break;
- }
- if (mSortReverse) {
- Collections.reverse(audioList);
- }
for (int i = 0; i < audioList.size(); i++) {
Media media = audioList.get(i);
More information about the Android
mailing list