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

Commit ad342903 authored by yingrenw's avatar yingrenw Committed by Arne Coucheron
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 266be2ec
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -55,7 +55,7 @@ public class ViewGroupFocusHelper extends FocusIndicatorHelper {
        outRect.left += child.getLeft();
        outRect.top += child.getTop();

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