Fix accessibility bounds

Follow up to Ifcc5bd7258c00ebd3a64ca4a4edd894e3baf0ccc
Bug: 21763049

Change-Id: I3026b22848ef1552e2faa82d9e0f4409d2cba63a
This commit is contained in:
Adrian Roos
2015-06-11 12:19:16 -07:00
parent 5c192da182
commit b44f5486ef

View File

@@ -353,8 +353,8 @@ 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);
outRect.bottom = (int) (outRect.top + getActualHeight()); outRect.bottom = outRect.top + getActualHeight();
outRect.top += getClipTopAmount(); outRect.top += getClipTopOptimization();
} }
public int getContentHeight() { public int getContentHeight() {