Patching null dereference in AbstractFloatingView.getOpenView()

am: 8e01ddd9b5

Change-Id: Ic971fe826cc2fee6447fc5f6e863a67736a6d989
This commit is contained in:
vadimt
2019-04-19 15:21:06 -07:00
committed by android-build-merger
@@ -182,6 +182,7 @@ public abstract class AbstractFloatingView extends LinearLayout implements Touch
protected static <T extends AbstractFloatingView> T getOpenView(
ActivityContext activity, @FloatingViewType int type) {
BaseDragLayer dragLayer = activity.getDragLayer();
if (dragLayer == null) return null;
// Iterate in reverse order. AbstractFloatingView is added later to the dragLayer,
// and will be one of the last views.
for (int i = dragLayer.getChildCount() - 1; i >= 0; i--) {