Fix issue keeping Go recents view GONE
Go recents view was always GONE before. This is because Go was missing
logic in its CONTENT_ALPHA property to set visibility on appropriate
alpha changes. This CL fixes this.
Bug: 114136250
Test: Manual test and see the view is there
Change-Id: I45fea6d695b9b3154be9d2e6fae25ca8a8aa288e
diff --git a/go/quickstep/src/com/android/quickstep/views/IconRecentsView.java b/go/quickstep/src/com/android/quickstep/views/IconRecentsView.java
index ae8166c..00415fe 100644
--- a/go/quickstep/src/com/android/quickstep/views/IconRecentsView.java
+++ b/go/quickstep/src/com/android/quickstep/views/IconRecentsView.java
@@ -51,6 +51,11 @@
@Override
public void setValue(IconRecentsView view, float v) {
ALPHA.set(view, v);
+ if (view.getVisibility() != VISIBLE && v > 0) {
+ view.setVisibility(VISIBLE);
+ } else if (view.getVisibility() != GONE && v == 0){
+ view.setVisibility(GONE);
+ }
}
@Override