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

Commit aaaea497 authored by Adrian Roos's avatar Adrian Roos
Browse files

AmbientIndication: Add tap again hint

Adds a hint for tapping the ambient indication again to open.
Also fixes an issue where the indication bottom padding was not correctly
updated if the indication was shown while the panel is collapsed.

Bug: 38387500
Test: tap indication, verify it shows the tap-again-to-open hint. Also verify that if the indication gets set while the phone is unlocked that sufficient space is reserved after transitioning to the lockscreen.
Change-Id: Ie9a152b0bd86807958376fd278ef9502c03af6b2
parent bf8fc94a
Loading
Loading
Loading
Loading
+10 −2
Original line number Diff line number Diff line
@@ -4548,6 +4548,11 @@ public class StatusBar extends SystemUI implements DemoMode,

    @Override
    public void onActivated(ActivatableNotificationView view) {
        onActivated((View)view);
        mStackScroller.setActivatedChild(view);
    }

    public void onActivated(View view) {
        mLockscreenGestureLogger.write(
                MetricsEvent.ACTION_LS_NOTE,
                0 /* lengthDp - N/A */, 0 /* velocityDp - N/A */);
@@ -4556,7 +4561,6 @@ public class StatusBar extends SystemUI implements DemoMode,
        if (previousView != null) {
            previousView.makeInactive(true /* animate */);
        }
        mStackScroller.setActivatedChild(view);
    }

    /**
@@ -4589,9 +4593,13 @@ public class StatusBar extends SystemUI implements DemoMode,
    @Override
    public void onActivationReset(ActivatableNotificationView view) {
        if (view == mStackScroller.getActivatedChild()) {
            mKeyguardIndicationController.hideTransientIndication();
            mStackScroller.setActivatedChild(null);
            onActivationReset((View)view);
        }
    }

    public void onActivationReset(View view) {
        mKeyguardIndicationController.hideTransientIndication();
    }

    public void onTrackingStarted() {