From 47934f7c4c8623f2231da5bcba86a10ebad3fd36 Mon Sep 17 00:00:00 2001 From: Jeff DeCew Date: Wed, 5 Apr 2023 13:50:41 -0400 Subject: [PATCH] Remove NOTIFICATION_DISMISSAL_FADE flag Test: atest SystemUITests Fixes: 254512731 Change-Id: I9e8030b43aca003aaa459f5729c3979b4328d8d8 --- packages/SystemUI/src/com/android/systemui/flags/Flags.kt | 3 --- .../stack/NotificationStackScrollLayoutController.java | 4 +--- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/packages/SystemUI/src/com/android/systemui/flags/Flags.kt b/packages/SystemUI/src/com/android/systemui/flags/Flags.kt index d74717a9cac5a..31af67f8e1108 100644 --- a/packages/SystemUI/src/com/android/systemui/flags/Flags.kt +++ b/packages/SystemUI/src/com/android/systemui/flags/Flags.kt @@ -68,9 +68,6 @@ object Flags { val NOTIFICATION_MEMORY_LOGGING_ENABLED = unreleasedFlag(119, "notification_memory_logging_enabled") - // TODO(b/254512731): Tracking Bug - @JvmField val NOTIFICATION_DISMISSAL_FADE = releasedFlag(113, "notification_dismissal_fade") - @JvmField val USE_ROUNDNESS_SOURCETYPES = releasedFlag(116, "use_roundness_sourcetype") // TODO(b/259217907) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationStackScrollLayoutController.java b/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationStackScrollLayoutController.java index 88899a1753f0f..d986402141c52 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationStackScrollLayoutController.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationStackScrollLayoutController.java @@ -180,7 +180,6 @@ public class NotificationStackScrollLayoutController { private final SeenNotificationsProvider mSeenNotificationsProvider; private NotificationStackScrollLayout mView; - private boolean mFadeNotificationsOnDismiss; private NotificationSwipeHelper mSwipeHelper; @Nullable private Boolean mHistoryEnabled; @@ -548,7 +547,7 @@ public class NotificationStackScrollLayoutController { public boolean updateSwipeProgress(View animView, boolean dismissable, float swipeProgress) { // Returning true prevents alpha fading. - return !mFadeNotificationsOnDismiss; + return false; } @Override @@ -773,7 +772,6 @@ public class NotificationStackScrollLayoutController { mLockscreenUserManager.addUserChangedListener(mLockscreenUserChangeListener); - mFadeNotificationsOnDismiss = mFeatureFlags.isEnabled(Flags.NOTIFICATION_DISMISSAL_FADE); if (!mUseRoundnessSourceTypes) { mNotificationRoundnessManager.setOnRoundingChangedCallback(mView::invalidate); mView.addOnExpandedHeightChangedListener(mNotificationRoundnessManager::setExpanded);