Fixed accessibility navigation gesture sound volume
Bug: 5061527 Change-Id: I88728f7368a55ae7e6ca2ce6cfed6af42ffa03df
This commit is contained in:
parent
81ff3ba343
commit
356d6871f1
1 changed files with 3 additions and 1 deletions
|
@ -47,6 +47,8 @@ public class AccessibleInputMethodServiceProxy implements AccessibleKeyboardActi
|
|||
*/
|
||||
private static final long VIBRATE_KEY_CLICK = 50;
|
||||
|
||||
private static final float FX_VOLUME = -1.0f;
|
||||
|
||||
private InputMethodService mInputMethod;
|
||||
private Vibrator mVibrator;
|
||||
private AudioManager mAudioManager;
|
||||
|
@ -143,7 +145,7 @@ public class AccessibleInputMethodServiceProxy implements AccessibleKeyboardActi
|
|||
*/
|
||||
private void sendDownUpKeyEvents(int keyCode) {
|
||||
mVibrator.vibrate(VIBRATE_KEY_CLICK);
|
||||
mAudioManager.playSoundEffect(AudioManager.FX_KEY_CLICK);
|
||||
mAudioManager.playSoundEffect(AudioManager.FX_KEYPRESS_STANDARD, FX_VOLUME);
|
||||
mInputMethod.sendDownUpKeyEvents(keyCode);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue