Annotate telephony vibrate calls with stream hints.
Use the new overloaded version of the vibrate api to provide
stream hints for existing vibrate calls in the telephony package.
These hints provide additional signal to the framework about
the type of vibration.
Change-Id: I9fd6e5f5e6c8ec91f6ca077f2cd21f86bfe9468d
diff --git a/src/com/android/phone/CallNotifier.java b/src/com/android/phone/CallNotifier.java
index 80807a2..56691d4 100644
--- a/src/com/android/phone/CallNotifier.java
+++ b/src/com/android/phone/CallNotifier.java
@@ -1769,7 +1769,7 @@
} else if (mIsEmergencyToneOn == EMERGENCY_TONE_VIBRATE) {
log("EmergencyTonePlayerVibrator.start(): emergency vibrate...");
if (mEmgVibrator != null) {
- mEmgVibrator.vibrate(mVibratePattern, 0);
+ mEmgVibrator.vibrate(mVibratePattern, 0, AudioManager.STREAM_VOICE_CALL);
mCurrentEmergencyToneState = EMERGENCY_TONE_VIBRATE;
}
}