File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
dragsquareimage/src/main/java/com/swifty/dragsquareimage Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 66import android .os .Message ;
77import android .support .v4 .view .GestureDetectorCompat ;
88import android .support .v4 .widget .ViewDragHelper ;
9- import android .text .TextUtils ;
109import android .util .AttributeSet ;
1110import android .util .SparseArray ;
1211import android .view .GestureDetector ;
@@ -547,11 +546,14 @@ public boolean onTouchEvent(MotionEvent e) {
547546 return true ;
548547 }
549548
549+ /**
550+ * if Itemview is empty then return null
551+ * @return
552+ */
550553 public SparseArray <String > getImageUrls () {
551554 SparseArray <String > stringSparseArray = new SparseArray <>();
552555 for (int i = 0 ; i < getChildCount (); i ++) {
553- if (getChildAt (i ) instanceof DraggableItemView
554- && !TextUtils .isEmpty (((DraggableItemView ) getChildAt (i )).getImagePath ())) {
556+ if (getChildAt (i ) instanceof DraggableItemView ) {
555557 stringSparseArray .put (((DraggableItemView ) getChildAt (i )).getStatus (), ((DraggableItemView ) getChildAt (i )).getImagePath ());
556558 }
557559 }
You can’t perform that action at this time.
0 commit comments