[Android] AudioPlayer: fix a wrong comparison.
Adrien Maglo
git at videolan.org
Tue Sep 22 22:19:58 CEST 2015
vlc-ports/android | branch: master | Adrien Maglo <magsoft at videolan.org> | Tue Sep 22 22:19:14 2015 +0200| [bb12e2837eeac1f0f2b6bdc641f388c14b349116] | committer: Adrien Maglo
AudioPlayer: fix a wrong comparison.
The C++ syntax does not work in Java...
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=bb12e2837eeac1f0f2b6bdc641f388c14b349116
---
vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayer.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayer.java b/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayer.java
index 85c67fa..0d72047 100644
--- a/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayer.java
+++ b/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayer.java
@@ -460,7 +460,7 @@ public class AudioPlayer extends PlaybackServiceFragment implements PlaybackServ
mSongsListAdapter.notifyDataSetChanged();
final int selectionIndex = currentIndex;
- if (previousAudioList != audioList)
+ if (!previousAudioList.equals(audioList))
mSongsList.post(new Runnable() {
@Override
public void run() {
More information about the Android
mailing list