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

Commit 7ce0d25b authored by Adrian Roos's avatar Adrian Roos Committed by Android (Google) Code Review
Browse files

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

parents 95120bbb cd55f43d
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -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();
    }