Bug 890620 - Specify InputType.TYPE_CLASS_TEXT for password prompt inputs. r=mfinkle, a=bajaj
authorJim Chen <nchen@mozilla.com>
Tue, 09 Jul 2013 16:37:57 -0400
changeset 147918 9c8e1fb423c5250f8a76003fb859f801bda20262
parent 147917 c2bb3f30e2df430b333017daf48cefaa3185c001
child 147919 5936c6a4b298c856131db51c4446050c54164e81
push id2697
push userbbajaj@mozilla.com
push dateMon, 05 Aug 2013 18:49:53 +0000
treeherdermozilla-beta@dfec938c7b63 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmfinkle, bajaj
bugs890620
milestone24.0a2
Bug 890620 - Specify InputType.TYPE_CLASS_TEXT for password prompt inputs. r=mfinkle, a=bajaj
mobile/android/base/PromptInput.java
--- a/mobile/android/base/PromptInput.java
+++ b/mobile/android/base/PromptInput.java
@@ -94,17 +94,19 @@ class PromptInput {
     public static class PasswordInput extends EditInput {
         public static final String INPUT_TYPE = "password";
         public PasswordInput(JSONObject obj) {
             super(obj);
         }
 
         public View getView(Context context) throws UnsupportedOperationException {
             EditText input = (EditText) super.getView(context);
-            input.setInputType(InputType.TYPE_TEXT_VARIATION_PASSWORD | InputType.TYPE_TEXT_FLAG_NO_SUGGESTIONS);
+            input.setInputType(InputType.TYPE_CLASS_TEXT |
+                               InputType.TYPE_TEXT_VARIATION_PASSWORD |
+                               InputType.TYPE_TEXT_FLAG_NO_SUGGESTIONS);
             return input;
         }
 
         public String getValue() {
             EditText edit = (EditText)mView;
             return edit.getText().toString();
         }
     }