commit | 5461089baa474da4b59bdb20fb5bfe882f0f68f2 | [log] [tgz] |
---|---|---|
author | Samuel Fufa <sfufa@google.com> | Tue Apr 06 04:05:13 2021 -0500 |
committer | Samuel Fufa <sfufa@google.com> | Tue Apr 06 04:05:20 2021 -0500 |
tree | 8d51b0218e3f7006cd962c1879d04ce228b52a37 | |
parent | dd2b8b6f2ed89b7b6fb45faa400db6f475c45bb4 [diff] |
[Search][Layout] Fix blank space when predictions are disabled This regression is caused due to getExpectedHeight relying on view visibility state while AlphaUpdateListener.updateVisibility was reseting the views visibility. Bug: 184211402 Test: local Change-Id: Ib756f5eb8f6356a18a025626008b97fd7c77fec9
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