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

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

Fixed an issue where a notification could flicker

Because of the fake shadow, the shelf could flicker in when
the last notification was activated.

Change-Id: I5fcf4dcec9fa73821402e6a3147922bbecb9a992
Fixes: 65022491
Test: click on last notification on keyguard, observe.
parent 406042a5
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -330,6 +330,15 @@ public class NotificationShelf extends ActivatableNotificationView implements
        }
    }

    @Override
    public void setFakeShadowIntensity(float shadowIntensity, float outlineAlpha, int shadowYEnd,
            int outlineTranslation) {
        if (!mHasItemsInStableShelf) {
            shadowIntensity = 0.0f;
        }
        super.setFakeShadowIntensity(shadowIntensity, outlineAlpha, shadowYEnd, outlineTranslation);
    }

    /**
     * @return the icon amount how much this notification is in the shelf;
     */