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

Commit d43e011e authored by yingrenw's avatar yingrenw Committed by Bruno Martins
Browse files

Launcher3: Stability NullPointer issue

Description:
Compute a child location by recursion, it
may not have parent view.

When the child doesn't have parent, should
break the recursive.

Change-Id: I8707712b85c10bf1c1d3860c5b8323aefd455cf2
CRs-Fixed: 1104931
parent 83baf7da
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -54,7 +54,7 @@ public class ViewGroupFocusHelper extends FocusIndicatorHelper {
        outRect.left += child.getX();
        outRect.top += child.getY();

        if (parent != mContainer) {
        if (parent != null && parent != mContainer) {
            if (parent instanceof PagedView) {
                PagedView page = (PagedView) parent;
                outRect.left -= page.getScrollForPage(page.indexOfChild(child));