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

Commit 668d3a9a authored by Lucas Silva's avatar Lucas Silva Committed by Android (Google) Code Review
Browse files

Merge "DO NOT MERGE Fix crash related to getting the root of an unattached view" into tm-qpr-dev

parents 052ffcf8 68cb239b
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -90,6 +90,9 @@ public class TouchInsetManager {
            final Region cumulativeRegion = Region.obtain();

            mTrackedViews.stream().forEach(view -> {
                if (!view.isAttachedToWindow()) {
                    return;
                }
                final Rect boundaries = new Rect();
                view.getDrawingRect(boundaries);
                ((ViewGroup) view.getRootView()).offsetDescendantRectToMyCoords(view, boundaries);