diff options
author | duho.ro <duho.ro@lge.com> | 2013-09-03 15:15:16 +0900 |
---|---|---|
committer | Wink Saville <wink@google.com> | 2013-09-10 21:15:34 -0700 |
commit | dd7f2bedaf123f306929e7a0b15835ee84e20bc1 (patch) | |
tree | 64adba8b9d58d0ab8b5fb02e1580139404122a28 /src | |
parent | ae29158d46bced241f956896cab6588a89e0478a (diff) | |
download | android_packages_apps_Stk-dd7f2bedaf123f306929e7a0b15835ee84e20bc1.tar.gz android_packages_apps_Stk-dd7f2bedaf123f306929e7a0b15835ee84e20bc1.tar.bz2 android_packages_apps_Stk-dd7f2bedaf123f306929e7a0b15835ee84e20bc1.zip |
STK : Fix STK input activity when rotated handset
When user is writing password in STK and then rotates the device,
the password numbers are displaying. And STK send the unexpected
Terminal Response to the UICC, so it causes wrong behavior.
Bug: 10383311, 10382809
Change-Id: I2fbce28a73fa15183e45bfc85791d4b11612aa4b
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/stk/StkInputActivity.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/com/android/stk/StkInputActivity.java b/src/com/android/stk/StkInputActivity.java index fb81469..1e70394 100644 --- a/src/com/android/stk/StkInputActivity.java +++ b/src/com/android/stk/StkInputActivity.java @@ -25,6 +25,7 @@ import android.os.Handler; import android.os.Message; import android.text.Editable; import android.text.InputFilter; +import android.text.InputType; import android.text.TextWatcher; import android.text.method.PasswordTransformationMethod; import android.view.KeyEvent; @@ -303,8 +304,8 @@ public class StkInputActivity extends Activity implements View.OnClickListener, numOfCharsView.setText(lengthLimit); if (!mStkInput.echo) { - mTextIn.setTransformationMethod(PasswordTransformationMethod - .getInstance()); + mTextIn.setInputType(InputType.TYPE_CLASS_NUMBER + | InputType.TYPE_NUMBER_VARIATION_PASSWORD); } // Set default text if present. if (mStkInput.defaultText != null) { |