From 34cf2616b58afdb4dd0b1760b9ea12b83b1e1187 Mon Sep 17 00:00:00 2001 From: Kevin Date: Tue, 26 Feb 2019 13:23:41 -0800 Subject: [PATCH] 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 --- .../src/com/android/quickstep/views/IconRecentsView.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/go/quickstep/src/com/android/quickstep/views/IconRecentsView.java b/go/quickstep/src/com/android/quickstep/views/IconRecentsView.java index ae8166c236..00415fe1a0 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 @@ public final class IconRecentsView extends FrameLayout { @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