Merge "Fix issue keeping Go recents view GONE" into ub-launcher3-master

This commit is contained in:
TreeHugger Robot 2019-02-27 00:20:14 +00:00 committed by Android (Google) Code Review
commit 66ae05f1dd
1 changed files with 5 additions and 0 deletions

View File

@ -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