Merge \"A11y: Fix notification bounds when top notification is scrolled\" into nyc-dev

am: 2e0aadf256

Change-Id: Idf4ae0820c36bfe8f111df849f4df58d02d2fe2c
This commit is contained in:
Adrian Roos
2016-06-15 18:06:28 +00:00
committed by android-build-merger

View File

@@ -305,6 +305,10 @@ public abstract class ExpandableView extends FrameLayout {
@Override
public void getBoundsOnScreen(Rect outRect, boolean 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.top += getClipTopAmount();
}