Merge "Move check of bar state into maybeVibrateOnOpening." into udc-dev am: e64ac57d83
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/23029092 Change-Id: Ie307405053e104350c54db53fd707de45eee2b1f Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -3498,7 +3498,7 @@ public final class NotificationPanelViewController implements ShadeSurface, Dump
|
||||
* gesture), we always play haptic.
|
||||
*/
|
||||
private void maybeVibrateOnOpening(boolean openingWithTouch) {
|
||||
if (mVibrateOnOpening) {
|
||||
if (mVibrateOnOpening && mBarState != KEYGUARD && mBarState != SHADE_LOCKED) {
|
||||
if (!openingWithTouch || !mHasVibratedOnOpen) {
|
||||
mVibratorHelper.vibrate(VibrationEffect.EFFECT_TICK);
|
||||
mHasVibratedOnOpen = true;
|
||||
@@ -4939,7 +4939,7 @@ public final class NotificationPanelViewController implements ShadeSurface, Dump
|
||||
mShadeLog.logHasVibrated(mHasVibratedOnOpen, mExpandedFraction);
|
||||
}
|
||||
addMovement(event);
|
||||
if (!isFullyCollapsed() && !isOnKeyguard()) {
|
||||
if (!isFullyCollapsed()) {
|
||||
maybeVibrateOnOpening(true /* openingWithTouch */);
|
||||
}
|
||||
float h = y - mInitialExpandY;
|
||||
|
||||
Reference in New Issue
Block a user