Merge "A11y: Fix notification bounds when top notification is scrolled" into nyc-dev
This commit is contained in:
@@ -305,6 +305,10 @@ public abstract class ExpandableView extends FrameLayout {
|
|||||||
@Override
|
@Override
|
||||||
public void getBoundsOnScreen(Rect outRect, boolean clipToParent) {
|
public void getBoundsOnScreen(Rect outRect, boolean clipToParent) {
|
||||||
super.getBoundsOnScreen(outRect, clipToParent);
|
super.getBoundsOnScreen(outRect, clipToParent);
|
||||||
|
if (getTop() + getTranslationY() < 0) {
|
||||||
|
// We got clipped to the parent here - make sure we undo that.
|
||||||
|
outRect.top += getTop() + getTranslationY();
|
||||||
|
}
|
||||||
outRect.bottom = outRect.top + getActualHeight();
|
outRect.bottom = outRect.top + getActualHeight();
|
||||||
outRect.top += getClipTopAmount();
|
outRect.top += getClipTopAmount();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user