Merge "Fix notification bounds on screen" into mnc-dev

This commit is contained in:
Adrian Roos
2015-06-11 00:49:50 +00:00
committed by Android (Google) Code Review

View File

@@ -340,6 +340,12 @@ public abstract class ExpandableView extends FrameLayout {
outRect.top += getTranslationY() + getClipTopAmount();
}
@Override
public void getBoundsOnScreen(Rect outRect, boolean clipToParent) {
super.getBoundsOnScreen(outRect, clipToParent);
outRect.bottom = (int) (outRect.top + getActualHeight());
}
public int getContentHeight() {
return mActualHeight - getBottomDecorHeight();
}