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
This commit is contained in:
parent
7eb9c93416
commit
34cf2616b5
|
@ -51,6 +51,11 @@ public final class IconRecentsView extends FrameLayout {
|
||||||
@Override
|
@Override
|
||||||
public void setValue(IconRecentsView view, float v) {
|
public void setValue(IconRecentsView view, float v) {
|
||||||
ALPHA.set(view, 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
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue