Sending drag-start notifications to children added to view group.

Doing this while dragging is really necessary for System UI shelf.

Also, not forgetting to remove the child from the "interested" set when
the child is removed.

Bug: 25231591
Change-Id: I26f5086a0a842868b2d7e9809f7483152098f314
(cherry picked from commit a82c8709f0914064f4b00262f1d411594bab467f)
This commit is contained in:
Vadim Tryshev
2015-10-23 17:39:33 -07:00
parent 1a9560209d
commit 02ed4a0e10

View File

@@ -4435,6 +4435,10 @@ public abstract class ViewGroup extends View implements ViewParent, ViewManager
}
}
}
if (mCurrentDragStartEvent != null && child.getVisibility() == VISIBLE) {
notifyChildOfDragStart(child);
}
}
private void addInArray(View child, int index) {
@@ -4686,6 +4690,10 @@ public abstract class ViewGroup extends View implements ViewParent, ViewManager
mTransientIndices.set(i, oldIndex - 1);
}
}
if (mCurrentDragStartEvent != null) {
mChildrenInterestedInDrag.remove(view);
}
}
/**