From c357fe712fe8a2961258216eba6f712653e70b62 Mon Sep 17 00:00:00 2001 From: daneren2005 Date: Thu, 23 Jan 2014 07:18:28 -0800 Subject: Added my own special lib changes to documentation --- README | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/README b/README index 676424be..f3e63f4c 100644 --- a/README +++ b/README @@ -28,3 +28,30 @@ HLS Video -Display video where album art is currently (double tap to fullscreen) -Videos can play inline with songs + +I haven't felt like forking dragsortlistview properly, so local bugfixes: +In DragSortListView.java line 741 above v.addView(child). Fixes NPE: +if(child.getParent() != null) { + ((ViewGroup) child.getParent()).removeView(child); +} + +In DragSortListView.java line 722, inside of child != oldChild statement. Fixes checkables mixed with non-checkables not being converted: +if(child instanceof Checkable && !(v instanceof Checkable)) { + v = new DragSortItemViewCheckable(getContext()); + v.setLayoutParams(new AbsListView.LayoutParams( + ViewGroup.LayoutParams.FILL_PARENT, + ViewGroup.LayoutParams.WRAP_CONTENT)); +} else if(!(child instanceof Checkable) && v instanceof Checkable) { + v = new DragSortItemView(getContext()); + v.setLayoutParams(new AbsListView.LayoutParams( + ViewGroup.LayoutParams.FILL_PARENT, + ViewGroup.LayoutParams.WRAP_CONTENT)); +} else { + // shouldn't get here if user is reusing convertViews + // properly + if (oldChild != null) { + v.removeViewAt(0); + } +} +v.addView(child); + -- cgit v1.2.3