aboutsummaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
authordaneren2005 <daneren2005@gmail.com>2014-01-23 07:18:28 -0800
committerdaneren2005 <daneren2005@gmail.com>2014-01-23 07:18:28 -0800
commitc357fe712fe8a2961258216eba6f712653e70b62 (patch)
treeb9d99a4bb87d459d23701d091672dd846e768404 /README
parent8823b311386d51e840781196b987ffc4af69e578 (diff)
downloaddsub-c357fe712fe8a2961258216eba6f712653e70b62.tar.gz
dsub-c357fe712fe8a2961258216eba6f712653e70b62.tar.bz2
dsub-c357fe712fe8a2961258216eba6f712653e70b62.zip
Added my own special lib changes to documentation
Diffstat (limited to 'README')
-rw-r--r--README27
1 files changed, 27 insertions, 0 deletions
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);
+