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

Commit c708b2b0 authored by Vadim Tryshev's avatar Vadim Tryshev Committed by Android (Google) Code Review
Browse files

Merge "Small cleanups around indexOfChild usage."

parents af99873c 6b6b9d68
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -419,7 +419,6 @@ class NavigationBarApps extends LinearLayout {
        }

        // "Move" the dragged app by removing it and adding it back at the target location.
        int dragViewIndex = indexOfChild(mDragView);
        int targetIndex = indexOfChild(target);
        // This works, but is subtle:
        // * If dragViewIndex > targetIndex then the dragged app is moving from right to left and
@@ -513,8 +512,7 @@ class NavigationBarApps extends LinearLayout {
        if (mDragView == null) {
            return;
        }
        int index = indexOfChild(mDragView);
        removeViewAt(index);
        removeView(mDragView);
        endDrag();
    }