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

Commit 6b6b9d68 authored by Vadim Tryshev's avatar Vadim Tryshev
Browse files

Small cleanups around indexOfChild usage.

Bug: 20024603
Change-Id: I56e478c1b65b5a112a486141406f29f8acd7bb9d
parent 8522bf81
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();
    }