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

Commit 3350508b authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Avoid drawing tall header when scrolling search results" into sc-dev

parents 9a6ba8cf d312651f
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()));