mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Merge "Fixed accessibility navigation gesture sound volume"
This commit is contained in:
commit
8721398ec0
@ -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…
x
Reference in New Issue
Block a user