Merge "[Search][Layout] Fix blank space when predictions are disabled" into sc-dev

This commit is contained in:
Samuel Fufa 2021-04-06 17:56:51 +00:00 committed by Android (Google) Code Review
commit 50c6a37ea9
1 changed files with 3 additions and 1 deletions

View File

@ -237,7 +237,9 @@ public class PredictionRowView extends LinearLayout implements
setTranslationY(scroll);
}
setAlpha(mScrolledOut ? 0 : 1);
AlphaUpdateListener.updateVisibility(this);
if (getVisibility() != GONE) {
AlphaUpdateListener.updateVisibility(this);
}
}
@Override