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

Commit 0d2aff5a authored by Ibrahim Yilmaz's avatar Ibrahim Yilmaz Committed by Android (Google) Code Review
Browse files

Merge "ENR: do not skip resetting content alpha when alpha is 0" into main

parents 1f773202 bcc91cb6
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -3636,8 +3636,12 @@ public class ExpandableNotificationRow extends ActivatableNotificationView
        final boolean shouldSkipHideSensitiveAnimation =
            mShowingPublic && isShowingLayoutNotChanged;
        if (!animated || shouldSkipHideSensitiveAnimation) {
            // In some edge cases, the showing layout's alpha might be 0. In these cases,
            // we need to reset content alpha!
            final NotificationContentView showingLayout = getShowingLayout();
            final boolean showingLayoutNeedsAlphaReset = showingLayout.getAlpha() == 0;
            if (!NotificationContentAlphaOptimization.isEnabled()
                    || mShowingPublic != oldShowingPublic) {
                    || mShowingPublic != oldShowingPublic || showingLayoutNeedsAlphaReset) {
                // Don't reset the alpha or cancel the animation if the showing layout doesn't
                // change
                mPublicLayout.animate().cancel();