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

Commit 148f18fe authored by Adrian Roos's avatar Adrian Roos Committed by android-build-merger
Browse files

Merge \\\"A11y: Fix notification bounds when top notification is scrolled\\\"...

Merge \\\"A11y: Fix notification bounds when top notification is scrolled\\\" into nyc-dev am: 2e0aadf2 am: c7d07e81
am: 4ce0dcb8

Change-Id: I81e520d6a7c484eb8efaf56fe7b4beecf62cfbbf
parents 8b032efd 4ce0dcb8
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -305,6 +305,10 @@ public abstract class ExpandableView extends FrameLayout {
    @Override
    public void getBoundsOnScreen(Rect outRect, boolean clipToParent) {
        super.getBoundsOnScreen(outRect, clipToParent);
        if (getTop() + getTranslationY() < 0) {
            // We got clipped to the parent here - make sure we undo that.
            outRect.top += getTop() + getTranslationY();
        }
        outRect.bottom = outRect.top + getActualHeight();
        outRect.top += getClipTopAmount();
    }