Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 07413dea authored by Vadim Tryshev's avatar Vadim Tryshev Committed by android-build-merger
Browse files

Merge "Patching null dereference in AbstractFloatingView.getOpenView()" into ub-launcher3-qt-dev

am: 44a063a1

Change-Id: Ic6c2e8c7ab79724e1c08ac6f75aef6c0092de2cf
parents d724acc2 44a063a1
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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--) {