Merge "Fix notifications accepting touches outside their bounds" into tm-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
0a9cb9b46d
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user