Switch assistant to HEAVY_CLICK effect on devices without haptic composition.

EFFECT_DOUBLE_CLICK is used for REJECT situations so it
feels like a mistake. EFFECT_HEAVY_CLICK was used for
EDGE_SQUEEZE previously so it's a better choice anyway.

Bug: 182381083
Fixes: 186767913
Test: long-press power
Change-Id: Iea474367a3f09a842b644cff7e2e2f05d6ddac49
This commit is contained in:
Dan Sandler
2021-04-30 11:16:57 -04:00
parent 1700fa9e5c
commit dca4ad7e0f

View File

@@ -5153,7 +5153,7 @@ public class PhoneWindowManager implements WindowManagerPolicy {
.compose();
}
// fallback for devices without composition support
return VibrationEffect.get(VibrationEffect.EFFECT_DOUBLE_CLICK);
return VibrationEffect.get(VibrationEffect.EFFECT_HEAVY_CLICK);
default:
return null;