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

Commit 4d9d4542 authored by Mario Bertschler's avatar Mario Bertschler Committed by Android (Google) Code Review
Browse files

Merge "Fixes the new search anim + worktabs/prediction row if the floating...

Merge "Fixes the new search anim + worktabs/prediction row if the floating header is in collapsed state." into ub-launcher3-master
parents a11d66d4 6f4e499f
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -160,7 +160,13 @@ public class FloatingHeaderHandler extends RecyclerView.OnScrollListener
    private void apply() {
        int uncappedTranslationY = mTranslationY;
        mTranslationY = Math.max(mTranslationY, -mMaxTranslation);
        if (mTranslationY != uncappedTranslationY) {
            // we hide it completely if already capped (for opening search anim)
            mPredictionRow.setVisibility(View.INVISIBLE);
        } else {
            mPredictionRow.setVisibility(View.VISIBLE);
            mPredictionRow.setTranslationY(uncappedTranslationY);
        }
        mTabLayout.setTranslationY(mTranslationY);
        mDivider.setTranslationY(mTopOnlyMode ? uncappedTranslationY : mTranslationY);
        mClip.top = mMaxTranslation + mTranslationY;