Fixes the new search anim + worktabs/prediction row if the floating header
is in collapsed state. Bug: 68713881 Change-Id: I76ca010e36987fbe7659ee1787c7482af151aef2
This commit is contained in:
1 parent
12b4c4ba58
commit
6f4e499f22
1 file changed
+7
-1
@@ -160,7 +160,13 @@ public class FloatingHeaderHandler extends RecyclerView.OnScrollListener
|
||||
private void apply() {
|
||||
int uncappedTranslationY = mTranslationY;
|
||||
mTranslationY = Math.max(mTranslationY, -mMaxTranslation);
|
||||
mPredictionRow.setTranslationY(uncappedTranslationY);
|
||||
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;
|
||||
|
||||
Reference in new issue
Block a user