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

Commit fb8bdbb7 authored by Lucas Dupin's avatar Lucas Dupin
Browse files

Swipe integration

Test: atest AmbientPulseDismissalControllerTest
Test: manual
Bug: 111405682
Bug: 111414690
Change-Id: Ifa4bee0f6d347986125c895dfe14d7fa093b2e58
parent 9180cf1d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -33,7 +33,7 @@ import com.android.systemui.statusbar.notification.row.NotificationInflater.Infl
 * dozing and/or in AOD.  The pulse uses the notification's ambient view and pops in briefly
 * before automatically dismissing the alert.
 */
public final class AmbientPulseManager extends AlertingNotificationManager {
public class AmbientPulseManager extends AlertingNotificationManager {

    protected final ArraySet<OnAmbientChangedListener> mListeners = new ArraySet<>();
    @VisibleForTesting
+3 −1
Original line number Diff line number Diff line
@@ -18,6 +18,8 @@ package com.android.systemui.statusbar.notification.stack;

import static com.android.systemui.statusbar.notification.ActivityLaunchAnimator
        .ExpandAnimationParameters;
import static com.android.systemui.statusbar.notification.stack.StackStateAnimator
        .ANIMATION_DURATION_SWIPE;
import static com.android.systemui.statusbar.phone.NotificationIconAreaController.LOW_PRIORITY;

import android.animation.Animator;
@@ -5093,7 +5095,7 @@ public class NotificationStackScrollLayout extends ViewGroup implements ScrollAd
            if (i == 0) {
                endRunnable = animationFinishAction;
            }
            dismissViewAnimated(view, endRunnable, totalDelay, 260);
            dismissViewAnimated(view, endRunnable, totalDelay, ANIMATION_DURATION_SWIPE);
            currentDelay = Math.max(50, currentDelay - rowDelayDecrement);
            totalDelay += currentDelay;
        }
+1 −0
Original line number Diff line number Diff line
@@ -44,6 +44,7 @@ public class StackStateAnimator {
    public static final int ANIMATION_DURATION_WAKEUP = 500;
    public static final int ANIMATION_DURATION_GO_TO_FULL_SHADE = 448;
    public static final int ANIMATION_DURATION_APPEAR_DISAPPEAR = 464;
    public static final int ANIMATION_DURATION_SWIPE = 260;
    public static final int ANIMATION_DURATION_DIMMED_ACTIVATED = 220;
    public static final int ANIMATION_DURATION_CLOSE_REMOTE_INPUT = 150;
    public static final int ANIMATION_DURATION_HEADS_UP_APPEAR = 550;