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

Commit 0579d681 authored by Tracy Zhou's avatar Tracy Zhou
Browse files

Guard updateBackgroundTint calls under notificationShadeTransparency flag

Bug: 403252510
Test: N/A add a flag check
Flag: com.android.systemui.notification_row_transparency
Change-Id: Icbf0e3b90b5d1256270e55878dc3741d9e5c9b39
parent a75b0fd1
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -1005,8 +1005,10 @@ public class ExpandableNotificationRow extends ActivatableNotificationView
        } else if (isAboveShelf() != wasAboveShelf) {
            mAboveShelfChangedListener.onAboveShelfStateChanged(!wasAboveShelf);
        }
        if (notificationRowTransparency()) {
            updateBackgroundTint();
        }
    }

    /**
     * Indicate that the notification is showing the app icon instead of the small icon.
@@ -3164,9 +3166,11 @@ public class ExpandableNotificationRow extends ActivatableNotificationView
                    mChildrenContainer.setOnKeyguard(onKeyguard);
                }
            }
            if (notificationRowTransparency()) {
                updateBackgroundTint();
            }
        }
    }

    @Override
    public int getHeightWithoutLockscreenConstraints() {