diff options
| author | 2019-05-10 16:08:23 +0000 | |
|---|---|---|
| committer | 2019-05-10 16:08:23 +0000 | |
| commit | 50a236dc7143e2f52770a8c9d1ddb9415f72c49b (patch) | |
| tree | 469fc7699cf1e96b2ad4223f16d015104ae44f07 | |
| parent | 0491e45466564766231c34d8c5484dcd318b8ef1 (diff) | |
| parent | 8a44bc9508c4351d2ac9d4a418e6bc075480a58d (diff) | |
Merge "Change attribute of fingerprint vibrations" into qt-dev
| -rw-r--r-- | services/core/java/com/android/server/biometrics/ClientMonitor.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/services/core/java/com/android/server/biometrics/ClientMonitor.java b/services/core/java/com/android/server/biometrics/ClientMonitor.java index 942e0501d88d..421b3f5ae106 100644 --- a/services/core/java/com/android/server/biometrics/ClientMonitor.java +++ b/services/core/java/com/android/server/biometrics/ClientMonitor.java @@ -42,7 +42,12 @@ public abstract class ClientMonitor extends LoggableMonitor implements IBinder.D private static final AudioAttributes FINGERPRINT_SONFICATION_ATTRIBUTES = new AudioAttributes.Builder() .setContentType(AudioAttributes.CONTENT_TYPE_SONIFICATION) - .setUsage(AudioAttributes.USAGE_ASSISTANCE_SONIFICATION) + // Temporary fix for b/123870990. No time in this release to + // introduce a new vibration type, but we need to distinguish these vibrations + // from other haptic feedback vibrations. Fortunately, Alarm vibrations have + // exactly the same behavior as we need + // TODO: refactor within the scope of b/132170758 + .setUsage(AudioAttributes.USAGE_ALARM) .build(); private final Context mContext; |