Merge "Revert "Revert "Fix notification group dismissal fade animation""" into tm-qpr-dev am: 46fa95fc23
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20370586 Change-Id: Iddd7b2a860978e7b8190df6ba143b8d9a97a2919 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -1511,7 +1511,7 @@ public class ExpandableNotificationRow extends ActivatableNotificationView
|
||||
l.setAlpha(alpha);
|
||||
}
|
||||
if (mChildrenContainer != null) {
|
||||
mChildrenContainer.setAlpha(alpha);
|
||||
mChildrenContainer.setContentAlpha(alpha);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -494,6 +494,20 @@ public class NotificationChildrenContainer extends ViewGroup
|
||||
return mAttachedChildren;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the alpha on the content, while leaving the background of the container itself as is.
|
||||
*
|
||||
* @param alpha alpha value to apply to the content
|
||||
*/
|
||||
public void setContentAlpha(float alpha) {
|
||||
for (int i = 0; i < mNotificationHeader.getChildCount(); i++) {
|
||||
mNotificationHeader.getChildAt(i).setAlpha(alpha);
|
||||
}
|
||||
for (ExpandableNotificationRow child : getAttachedChildren()) {
|
||||
child.setContentAlpha(alpha);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* To be called any time the rows have been updated
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user