From 0635b8927e1e77e34916437f4e5b67cff4e25b2a Mon Sep 17 00:00:00 2001 From: John Spurlock Date: Sat, 19 Jul 2014 17:52:35 -0400 Subject: Volume: restore vibration entering vibrate-mode from rocker. Bug:16418732 Change-Id: I0db18a0ff21cfa1af7005ab9620340d34c2eb63b --- policy/src/com/android/internal/policy/impl/PhoneWindow.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'policy') diff --git a/policy/src/com/android/internal/policy/impl/PhoneWindow.java b/policy/src/com/android/internal/policy/impl/PhoneWindow.java index 1e61236..e3c2203 100644 --- a/policy/src/com/android/internal/policy/impl/PhoneWindow.java +++ b/policy/src/com/android/internal/policy/impl/PhoneWindow.java @@ -1704,7 +1704,8 @@ public class PhoneWindow extends Window implements MenuBuilder.Callback { mMediaController.adjustVolume(direction, AudioManager.FLAG_SHOW_UI); } else { MediaSessionLegacyHelper.getHelper(getContext()).sendAdjustVolumeBy( - mVolumeControlStreamType, direction, AudioManager.FLAG_SHOW_UI); + mVolumeControlStreamType, direction, + AudioManager.FLAG_SHOW_UI | AudioManager.FLAG_VIBRATE); } return true; } -- cgit v1.1