summaryrefslogtreecommitdiff
path: root/src/com/android/stk
diff options
context:
space:
mode:
authorarunvoddu <arunvoddu@google.com>2022-10-17 16:27:32 +0000
committerarunvoddu <arunvoddu@google.com>2022-10-20 04:49:38 +0000
commita4954c17a8de4a5d5a0546b5dc79c1b61a226fd5 (patch)
treefa122f5ad3e89ba0ca82283a4474c8b14ec96ff5 /src/com/android/stk
parentad17dd13824b79280aec835184e2d30123c65960 (diff)
downloadStk-a4954c17a8de4a5d5a0546b5dc79c1b61a226fd5.tar.gz
in case of DigitOnly forcing the IME to show only numeric keyboard
Bug: 244483864 Test: verified manually Change-Id: I43ad6f72d8592c973f1d72328baea175100c6201
Diffstat (limited to 'src/com/android/stk')
-rw-r--r--src/com/android/stk/StkInputActivity.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/com/android/stk/StkInputActivity.java b/src/com/android/stk/StkInputActivity.java
index 18e7b35..8608a22 100644
--- a/src/com/android/stk/StkInputActivity.java
+++ b/src/com/android/stk/StkInputActivity.java
@@ -27,6 +27,7 @@ import android.os.SystemClock;
import android.telephony.CarrierConfigManager;
import android.text.Editable;
import android.text.InputFilter;
+import android.text.InputType;
import android.text.TextUtils;
import android.text.TextWatcher;
import android.text.method.PasswordTransformationMethod;
@@ -449,6 +450,7 @@ public class StkInputActivity extends AppCompatActivity implements View.OnClickL
boolean hideHelper = false;
if (mStkInput.digitOnly) {
mTextIn.setKeyListener(StkDigitsKeyListener.getInstance());
+ mTextIn.setInputType(InputType.TYPE_CLASS_NUMBER);
inTypeId = R.string.digits;
hideHelper = StkAppService.getBooleanCarrierConfig(this,
CarrierConfigManager.KEY_HIDE_DIGITS_HELPER_TEXT_ON_STK_INPUT_SCREEN_BOOL,