Revert "Fix notification group dismissal fade animation"

This reverts commit 01397a7825.

Reason for revert: Apparently, this change made the SystemServerTiming_PhaseActivityManagerReady-mean test time increase by 12.7%. Therefore, I want to revert it until I figure out, what is causing this increase.

Bug: 253532643

Change-Id: I347c865ab791ba1fc20bf03a34d9a8f2a5ce60ce
This commit is contained in:
Johannes Gallmann
2022-10-18 09:29:56 +00:00
parent 01397a7825
commit eb14529831
2 changed files with 1 additions and 15 deletions

View File

@@ -1487,7 +1487,7 @@ public class ExpandableNotificationRow extends ActivatableNotificationView
l.setAlpha(alpha);
}
if (mChildrenContainer != null) {
mChildrenContainer.setContentAlpha(alpha);
mChildrenContainer.setAlpha(alpha);
}
}

View File

@@ -461,20 +461,6 @@ 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) {