Fix notification bounds on screen
Bug: 21763049 Change-Id: Ifcc5bd7258c00ebd3a64ca4a4edd894e3baf0ccc
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user