Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a4091507 authored by Selim Cinek's avatar Selim Cinek
Browse files

Fixed animation jank in notification groups

When group children are animating from single line to expanded,
the animation was jarring.

Change-Id: I4b248b2f59a842befaa0f5d5440c55f140584da2
parent de33a4ad
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -496,7 +496,8 @@ public class NotificationContentView extends FrameLayout {
                return VISIBLE_TYPE_EXPANDED;
            }
        } else {
            if (viewHeight <= mContractedChild.getHeight() || noExpandedChild) {
            if (noExpandedChild || (viewHeight <= mContractedChild.getHeight()
                    && (!mIsChildInGroup || !mContainingNotification.isExpanded()))) {
                return VISIBLE_TYPE_CONTRACTED;
            } else {
                return VISIBLE_TYPE_EXPANDED;