[Android] Fix typo in onItemDragged
Edward Wang
git at videolan.org
Thu Jun 19 00:31:30 CEST 2014
vlc-ports/android | branch: master | Edward Wang <edward.c.wang at compdigitec.com> | Mon Jun 16 17:33:16 2014 -0400| [a1cb5ab05444577df476453350e66e2b66605b22] | committer: Edward Wang
Fix typo in onItemDragged
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=a1cb5ab05444577df476453350e66e2b66605b22
---
vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayer.java | 2 +-
.../src/org/videolan/vlc/gui/audio/AudioPlaylistView.java | 6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)
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 34df4c4..a059777 100644
--- a/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayer.java
+++ b/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayer.java
@@ -240,7 +240,7 @@ public class AudioPlayer extends Fragment implements IAudioPlayer {
});
mSongsList.setOnItemDraggedListener(new AudioPlaylistView.OnItemDraggedListener() {
@Override
- public void OnItemDradded(int positionStart, int positionEnd) {
+ public void onItemDragged(int positionStart, int positionEnd) {
mAudioController.moveItem(positionStart, positionEnd);
}
});
diff --git a/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlaylistView.java b/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlaylistView.java
index 0fb1064..251f60b 100644
--- a/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlaylistView.java
+++ b/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlaylistView.java
@@ -209,13 +209,13 @@ public class AudioPlaylistView extends ListView {
// Send back the performed change thanks to the listener.
AudioPlaylistAdapter.ViewHolder holder = (AudioPlaylistAdapter.ViewHolder)child.getTag();
if (mOnItemDraggedListener != null)
- mOnItemDraggedListener.OnItemDradded(mPositionDragStart, holder.position);
+ mOnItemDraggedListener.onItemDragged(mPositionDragStart, holder.position);
b_foundHitChild = true;
break;
}
}
if (!b_foundHitChild)
- mOnItemDraggedListener.OnItemDradded(mPositionDragStart, this.getCount());
+ mOnItemDraggedListener.onItemDragged(mPositionDragStart, this.getCount());
}
public void dragAborted() {
@@ -231,7 +231,7 @@ public class AudioPlaylistView extends ListView {
}
public interface OnItemDraggedListener {
- public void OnItemDradded(int positionStart, int positionEnd);
+ public void onItemDragged(int positionStart, int positionEnd);
};
public void setOnItemDraggedListener(OnItemDraggedListener l) {
More information about the Android
mailing list