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

Skip to content
Commit 3b4c0325 authored by Haoyu Zhang's avatar Haoyu Zhang
Browse files

Check view drawing order in ViewGroup#getChildLocalHitRegion

Before this change, ViewGroup#getChildLocalHitRegion will clip a view's
hit region when its slibing view is reciving MotionEvents despite of the
view order.
This doesn't work when two views overlaps and the bottom view is handling
MotionEvents. Because the top view's hit region will get clipped by the
bottom view's bounds.
This CL adds the view order check and fixed the issue.

Bug: 299859816
Test: atest ViewGroupGetChildLocalHitRegionTest
Change-Id: I68a8ab8402229ceaefeb5fb537c998705076d9f0
parent 8eea66e7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment