Merge "Handle edge cases for haptic feedback on shade opening." into tm-qpr-dev am: bfafedee12 am: 32507238ec
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/21032845 Change-Id: I8ef901eb4c84450d6533acebcc1a29d654f96ad9 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -2157,6 +2157,7 @@ public final class NotificationPanelViewController implements Dumpable {
|
||||
}
|
||||
ValueAnimator animator = createHeightAnimator(target, overshootAmount);
|
||||
if (expand) {
|
||||
maybeVibrateOnOpening(true /* openingWithTouch */);
|
||||
if (expandBecauseOfFalsing && vel < 0) {
|
||||
vel = 0;
|
||||
}
|
||||
@@ -2167,6 +2168,7 @@ public final class NotificationPanelViewController implements Dumpable {
|
||||
animator.setDuration(SHADE_OPEN_SPRING_OUT_DURATION);
|
||||
}
|
||||
} else {
|
||||
mHasVibratedOnOpen = false;
|
||||
if (shouldUseDismissingAnimation()) {
|
||||
if (vel == 0) {
|
||||
animator.setInterpolator(Interpolators.PANEL_CLOSE_ACCELERATED);
|
||||
@@ -6375,7 +6377,7 @@ public final class NotificationPanelViewController implements Dumpable {
|
||||
mShadeLog.logHasVibrated(mHasVibratedOnOpen, mExpandedFraction);
|
||||
}
|
||||
addMovement(event);
|
||||
if (!isFullyCollapsed()) {
|
||||
if (!isFullyCollapsed() && !isOnKeyguard()) {
|
||||
maybeVibrateOnOpening(true /* openingWithTouch */);
|
||||
}
|
||||
float h = y - mInitialExpandY;
|
||||
|
||||
Reference in New Issue
Block a user