1
0
Fork 0

regression: fixed the SoftPunctuation keys vibrating when pressed while invisible

This commit is contained in:
sspanak 2025-02-08 11:32:05 +02:00 committed by Dimo Karaivanov
parent 28fe183813
commit 91de2875dd
2 changed files with 5 additions and 1 deletions

View file

@ -54,6 +54,8 @@ class MainLayoutNumpad extends BaseMainLayout {
|| keyId == R.id.soft_key_lf4
|| keyId == R.id.soft_key_0
|| keyId == R.id.soft_key_100
|| keyId == R.id.soft_key_punctuation_101
|| keyId == R.id.soft_key_punctuation_102
|| keyId == R.id.soft_key_punctuation_201
|| keyId == R.id.soft_key_punctuation_202
) {
@ -85,6 +87,8 @@ class MainLayoutNumpad extends BaseMainLayout {
|| keyId == R.id.soft_key_lf4
|| keyId == R.id.soft_key_0
|| keyId == R.id.soft_key_100
|| keyId == R.id.soft_key_punctuation_101
|| keyId == R.id.soft_key_punctuation_102
|| keyId == R.id.soft_key_punctuation_201
|| keyId == R.id.soft_key_punctuation_202
) {

View file

@ -139,7 +139,7 @@ public class BaseClickableKey extends com.google.android.material.button.Materia
protected boolean handlePress() {
if (validateTT9Handler()) {
if (validateTT9Handler() && getVisibility() == VISIBLE) {
vibrate(Vibration.getPressVibration(this));
}