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

Commit 158ce348 authored by Danesh M's avatar Danesh M Committed by Danesh M
Browse files

Lockscreen : Only animate targets if launched via swipe

If launching via gesture or double tap of power button, showing the
reveal doesn't make much sense and creates visual jank. Only animate
for swipes.

CYNGNOS-2517

Change-Id: I69e1d06c77c12fe39b5ddb01bcc22ed2fff2a9d0
(cherry picked from commit c8bbaca3)
parent 5083441c
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -2793,7 +2793,8 @@ public class NotificationPanelView extends PanelView implements
        // If we are launching it when we are occluded already we don't want it to animate,
        // nor setting these flags, since the occluded state doesn't change anymore, hence it's
        // never reset.
        if (!isFullyCollapsed()) {
        if (!isFullyCollapsed() && mLastCameraLaunchSource ==
                KeyguardBottomAreaView.CAMERA_LAUNCH_SOURCE_AFFORDANCE) {
            mLaunchingAffordance = true;
            setLaunchingAffordance(true);
        } else {