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

Commit ef2a8e20 authored by Ibrahim Yilmaz's avatar Ibrahim Yilmaz Committed by Android Build Coastguard Worker
Browse files

[ENR] Only skip hide sensitive anim for showing public

We don't want to play hide sensitive animation when layout is not changed and mShowingPublic is true. Current code is too aggressive and can cause 0 content alpha.

Bug: 414782247
Bug: 392614656
Test: Check hideSensitive animation play and appear animations.
Flag: EXEMPT trivial bugfix
(cherry picked from commit e93d4b01)
Cherrypick-From: https://googleplex-android-review.googlesource.com/q/commit:c552db42595bc5d472d29a60e09566e59877c33b
Merged-In: Ia417a27dcb7d26609df5629bae9bbba1785983a0
Change-Id: Ia417a27dcb7d26609df5629bae9bbba1785983a0
parent bc34b284
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3531,7 +3531,7 @@ public class ExpandableNotificationRow extends ActivatableNotificationView
        }

        final boolean shouldSkipHideSensitiveAnimation =
                Flags.skipHideSensitiveNotifAnimation() && isShowingLayoutNotChanged;
                mShowingPublic && isShowingLayoutNotChanged;
        if (!animated || shouldSkipHideSensitiveAnimation) {
            if (!NotificationContentAlphaOptimization.isEnabled()
                    || mShowingPublic != oldShowingPublic) {