Fix notification bounds on screen

Bug: 21763049
Change-Id: Ifcc5bd7258c00ebd3a64ca4a4edd894e3baf0ccc
This commit is contained in:
Adrian Roos
2015-06-10 16:42:53 -07:00
parent 2285308629
commit cd55f43db6

View File

@@ -339,6 +339,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();
}