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

Commit d312651f authored by Samuel Fufa's avatar Samuel Fufa
Browse files

Avoid drawing tall header when scrolling search results

Bug: 184946772
Test: manual
Change-Id: I1bedec89fb9eb5dc51b8b34511a02868cec91efe
parent 4e760601
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -298,7 +298,7 @@ public class FloatingHeaderView extends LinearLayout implements

    @Override
    protected void dispatchDraw(Canvas canvas) {
        if (mHeaderCollapsed && mTabLayout.getVisibility() == VISIBLE
        if (mHeaderCollapsed && !mCollapsed && mTabLayout.getVisibility() == VISIBLE
                && mHeaderColor != Color.TRANSPARENT) {
            mBGPaint.setColor(mHeaderColor);
            mBGPaint.setAlpha((int) (255 * mHeaderAnimator.getAnimatedFraction()));