commit | 50c6a37ea9db974e29dbcc3e42f0d693068d7bb9 | [log] [tgz] |
---|---|---|
author | Samuel Fufa <sfufa@google.com> | Tue Apr 06 17:56:51 2021 +0000 |
committer | Android (Google) Code Review <android-gerrit@google.com> | Tue Apr 06 17:56:51 2021 +0000 |
tree | 23911bf1132487a16c52ce545f2b965d49a2954b | |
parent | fd9af2f0178338f2bba02a9a2b229f5eb7552f95 [diff] | |
parent | 5461089baa474da4b59bdb20fb5bfe882f0f68f2 [diff] |
Merge "[Search][Layout] Fix blank space when predictions are disabled" into sc-dev
diff --git a/quickstep/src/com/android/launcher3/appprediction/PredictionRowView.java b/quickstep/src/com/android/launcher3/appprediction/PredictionRowView.java index 8e92b59..cc3ccea 100644 --- a/quickstep/src/com/android/launcher3/appprediction/PredictionRowView.java +++ b/quickstep/src/com/android/launcher3/appprediction/PredictionRowView.java
@@ -237,7 +237,9 @@ setTranslationY(scroll); } setAlpha(mScrolledOut ? 0 : 1); - AlphaUpdateListener.updateVisibility(this); + if (getVisibility() != GONE) { + AlphaUpdateListener.updateVisibility(this); + } } @Override