fix haptic and audio feedback

got broken in cd44d2dc9f
fixes #597
This commit is contained in:
Helium314 2024-03-31 23:05:37 +02:00
parent f859e80aca
commit 42f7b62543
2 changed files with 2 additions and 1 deletions

View file

@ -16,6 +16,7 @@ class KeyboardActionListenerImpl(private val latinIME: LatinIME, private val inp
override fun onPressKey(primaryCode: Int, repeatCount: Int, isSinglePointer: Boolean) {
keyboardSwitcher.onPressKey(primaryCode, isSinglePointer, latinIME.currentAutoCapsState, latinIME.currentRecapitalizeState)
latinIME.hapticAndAudioFeedback(primaryCode, repeatCount)
}
override fun onReleaseKey(primaryCode: Int, withSliding: Boolean) {

View file

@ -1697,7 +1697,7 @@ public class LatinIME extends InputMethodService implements
}
}
private void hapticAndAudioFeedback(final int code, final int repeatCount) {
public void hapticAndAudioFeedback(final int code, final int repeatCount) {
final MainKeyboardView keyboardView = mKeyboardSwitcher.getMainKeyboardView();
if (keyboardView != null && keyboardView.isInDraggingFinger()) {
// No need to feedback while finger is dragging.