[Android] Audio player: reset the playlist item layouts on drag aborted
Adrien Maglo
git at videolan.org
Fri Jan 24 09:36:06 CET 2014
vlc-ports/android | branch: master | Adrien Maglo <magsoft at videolan.org> | Fri Jan 24 09:35:56 2014 +0100| [b1b20308a0aca39b9ad879c3b680cf6c01eae929] | committer: Adrien Maglo
Audio player: reset the playlist item layouts on drag aborted
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=b1b20308a0aca39b9ad879c3b680cf6c01eae929
---
.../src/org/videolan/vlc/gui/audio/AudioPlaylistView.java | 10 ++++++++++
1 file changed, 10 insertions(+)
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 9d78aad..c32b522 100644
--- a/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlaylistView.java
+++ b/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlaylistView.java
@@ -188,6 +188,16 @@ public class AudioPlaylistView extends ListView {
public void dragAborted() {
mIsDragging = false;
+
+ for (int i = 0; i < getChildCount(); i++) {
+ View child = getChildAt(i);
+ LinearLayout expansion = (LinearLayout)child.findViewById(R.id.item_expansion);
+ LinearLayout layout_item = (LinearLayout)child.findViewById(R.id.layout_item);
+ View layout_footer = (View)child.findViewById(R.id.layout_footer);
+ layout_item.setVisibility(LinearLayout.VISIBLE);
+ layout_footer.setVisibility(LinearLayout.VISIBLE);
+ expansion.setVisibility(LinearLayout.GONE);
+ }
}
public interface OnItemDraggedListener {
More information about the Android
mailing list