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

Commit 6e6a473c authored by Lucas Silva's avatar Lucas Silva Committed by Presubmit Automerger Backend
Browse files

[automerge] DO NOT MERGE Fix crash related to getting the root of an unattached view 2p: 68cb239b

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/22595180

Change-Id: If21a516435353b1e70ede0fdfafb8656e3258e64
parents f3dbfcfb 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);