Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cd55f43d authored by Adrian Roos's avatar Adrian Roos
Browse files

Fix notification bounds on screen

Bug: 21763049
Change-Id: Ifcc5bd7258c00ebd3a64ca4a4edd894e3baf0ccc
parent 22853086
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -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();
    }