Make AllAppsRecyclerViewContainer GONE when hidden
Test: N/A Flags: ALL_APPS_GONE_VISIBILITY Bug: 264341825 Change-Id: I28933c08e80b95bcd5031da9869b37f34f6408b2
This commit is contained in:
1 parent
d33fc05022
commit
df59c2e535
7 files changed
+96
-25
No files matched your search
@@ -32,8 +32,15 @@ public class MultiValueAlpha extends MultiPropertyFactory<View> {
|
||||
// Whether we should change from INVISIBLE to VISIBLE and vice versa at low alpha values.
|
||||
private boolean mUpdateVisibility;
|
||||
|
||||
private final int mHiddenVisibility;
|
||||
|
||||
public MultiValueAlpha(View view, int size) {
|
||||
this(view, size, View.INVISIBLE);
|
||||
}
|
||||
|
||||
public MultiValueAlpha(View view, int size, int hiddenVisibility) {
|
||||
super(view, VIEW_ALPHA, size, ALPHA_AGGREGATOR, 1f);
|
||||
this.mHiddenVisibility = hiddenVisibility;
|
||||
}
|
||||
|
||||
/** Sets whether we should update between INVISIBLE and VISIBLE based on alpha. */
|
||||
@@ -45,7 +52,7 @@ public class MultiValueAlpha extends MultiPropertyFactory<View> {
|
||||
protected void apply(float value) {
|
||||
super.apply(value);
|
||||
if (mUpdateVisibility) {
|
||||
AlphaUpdateListener.updateVisibility(mTarget);
|
||||
AlphaUpdateListener.updateVisibility(mTarget, mHiddenVisibility);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user