Merge "Fix notifications accepting touches outside their bounds" into tm-dev

This commit is contained in:
TreeHugger Robot
2022-05-19 18:55:50 +00:00
committed by Android (Google) Code Review

View File

@@ -157,7 +157,7 @@ public abstract class ExpandableView extends FrameLayout implements Dumpable {
@Override
public boolean pointInView(float localX, float localY, float slop) {
float top = mClipTopAmount;
float top = Math.max(0, mClipTopAmount);
float bottom = mActualHeight;
return localX >= -slop && localY >= top - slop && localX < ((mRight - mLeft) + slop) &&
localY < (bottom + slop);