Merge "Fix notification group dismissal fade animation" into tm-qpr-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
0bad9c5af8
@@ -1487,7 +1487,7 @@ public class ExpandableNotificationRow extends ActivatableNotificationView
|
||||
l.setAlpha(alpha);
|
||||
}
|
||||
if (mChildrenContainer != null) {
|
||||
mChildrenContainer.setAlpha(alpha);
|
||||
mChildrenContainer.setContentAlpha(alpha);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -461,6 +461,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 */
|
||||
public void updateExpansionStates() {
|
||||
if (mChildrenExpanded || mUserLocked) {
|
||||
|
||||
Reference in New Issue
Block a user