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

Commit 70b110f9 authored by vadimt's avatar vadimt Committed by android-build-merger
Browse files

Patching null dereference in AbstractFloatingView.getOpenView()

am: 8e01ddd9

Change-Id: Ic971fe826cc2fee6447fc5f6e863a67736a6d989
parents 5f4e88a2 8e01ddd9
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--) {