From 6e383881ff14eb1e28e87058e3246d6ce00db1a1 Mon Sep 17 00:00:00 2001 From: Lucas Dupin Date: Tue, 25 Jun 2019 09:46:59 -0700 Subject: [PATCH] Do no play hint animation when retrying auth Bug: 130327361 Test: manual Change-Id: Ie6f6c4c590b3feebb4ad522294cdbc6942e1f788 --- .../statusbar/phone/NotificationPanelView.java | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java index 186fd3793cb27..64a8ce029a7b9 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java @@ -2430,7 +2430,6 @@ public class NotificationPanelView extends PanelView implements onUnlockHintFinished(); return; } - mUpdateMonitor.requestFaceAuth(); super.startUnlockHintAnimation(); } @@ -2651,10 +2650,14 @@ public class NotificationPanelView extends PanelView implements switch (mBarState) { case StatusBarState.KEYGUARD: if (!mDozingOnDown) { - mLockscreenGestureLogger.write( - MetricsEvent.ACTION_LS_HINT, - 0 /* lengthDp - N/A */, 0 /* velocityDp - N/A */); - startUnlockHintAnimation(); + if (mKeyguardBypassController.getBypassEnabled()) { + mUpdateMonitor.requestFaceAuth(); + } else { + mLockscreenGestureLogger.write( + MetricsEvent.ACTION_LS_HINT, + 0 /* lengthDp - N/A */, 0 /* velocityDp - N/A */); + startUnlockHintAnimation(); + } } return true; case StatusBarState.SHADE_LOCKED: