W dniu poniedziałek, 25 czerwca 2012 16:05:30 UTC+2 użytkownik Miha napisał:
>
> Hi!
>
> In my app, I am showing an alert dialog and in it an EditText for the 
> password with code like this:
>
>   _input = *new* EditText(BaseInfoActivity.*this*);
> _input.setSingleLine();
> _input.setInputType(InputType.*TYPE_TEXT_VARIATION_PASSWORD*);
>
> It should be:
_input.setInputType(InputType.*TYPE_CLASS_TEXT | *InputType.*
TYPE_TEXT_VARIATION_PASSWORD*);

You forgot to set input class bit, I noticed that on ICS omitting class bit 
will default input to CLASS_TEXT and variation bits will cleared, on 
previous version class was set to default (CLASS_TEXT) but variation bits 
were preserved.

--
Bart

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to