regression: fixed the SoftPunctuation keys vibrating when pressed while invisible
This commit is contained in:
parent
28fe183813
commit
91de2875dd
2 changed files with 5 additions and 1 deletions
|
|
@ -54,6 +54,8 @@ class MainLayoutNumpad extends BaseMainLayout {
|
||||||
|| keyId == R.id.soft_key_lf4
|
|| keyId == R.id.soft_key_lf4
|
||||||
|| keyId == R.id.soft_key_0
|
|| keyId == R.id.soft_key_0
|
||||||
|| keyId == R.id.soft_key_100
|
|| 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_201
|
||||||
|| keyId == R.id.soft_key_punctuation_202
|
|| 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_lf4
|
||||||
|| keyId == R.id.soft_key_0
|
|| keyId == R.id.soft_key_0
|
||||||
|| keyId == R.id.soft_key_100
|
|| 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_201
|
||||||
|| keyId == R.id.soft_key_punctuation_202
|
|| keyId == R.id.soft_key_punctuation_202
|
||||||
) {
|
) {
|
||||||
|
|
|
||||||
|
|
@ -139,7 +139,7 @@ public class BaseClickableKey extends com.google.android.material.button.Materia
|
||||||
|
|
||||||
|
|
||||||
protected boolean handlePress() {
|
protected boolean handlePress() {
|
||||||
if (validateTT9Handler()) {
|
if (validateTT9Handler() && getVisibility() == VISIBLE) {
|
||||||
vibrate(Vibration.getPressVibration(this));
|
vibrate(Vibration.getPressVibration(this));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue