Merge "Move reset haptic effect into the move event handling." into tm-qpr-dev am: 84e751f92d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20208975 Change-Id: Ibbccf89f77b3c942830829846dd43d7c2089d7af Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -4729,8 +4729,6 @@ public final class NotificationPanelViewController {
|
|||||||
|
|
||||||
private void startOpening(MotionEvent event) {
|
private void startOpening(MotionEvent event) {
|
||||||
updatePanelExpansionAndVisibility();
|
updatePanelExpansionAndVisibility();
|
||||||
// Reset at start so haptic can be triggered as soon as panel starts to open.
|
|
||||||
mHasVibratedOnOpen = false;
|
|
||||||
//TODO: keyguard opens QS a different way; log that too?
|
//TODO: keyguard opens QS a different way; log that too?
|
||||||
|
|
||||||
// Log the position of the swipe that opened the panel
|
// Log the position of the swipe that opened the panel
|
||||||
@@ -6214,6 +6212,10 @@ public final class NotificationPanelViewController {
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case MotionEvent.ACTION_MOVE:
|
case MotionEvent.ACTION_MOVE:
|
||||||
|
if (isFullyCollapsed()) {
|
||||||
|
// If panel is fully collapsed, reset haptic effect before adding movement.
|
||||||
|
mHasVibratedOnOpen = false;
|
||||||
|
}
|
||||||
addMovement(event);
|
addMovement(event);
|
||||||
if (!isFullyCollapsed()) {
|
if (!isFullyCollapsed()) {
|
||||||
maybeVibrateOnOpening(true /* openingWithTouch */);
|
maybeVibrateOnOpening(true /* openingWithTouch */);
|
||||||
|
|||||||
Reference in New Issue
Block a user