Skip to content

Commit

Permalink
Merge pull request #2209 from hieupham007/timob-9098
Browse files Browse the repository at this point in the history
timob-9098: Masked password fix for 4.0.4
  • Loading branch information
vishalduggal committed May 17, 2012
2 parents 2023986 + 741a182 commit 7bd5af3
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -426,9 +426,8 @@ protected char[] getAcceptedChars() {
if (passwordMask) {
tv.setTransformationMethod(PasswordTransformationMethod.getInstance());
textTypeAndClass |= InputType.TYPE_TEXT_VARIATION_PASSWORD;
//turn off text UI in landscape mode in 4.0 b/c Android numeric passwords are not masked correctly in landscape mode.
if (Build.VERSION.SDK_INT == TiC.API_LEVEL_ICE_CREAM_SANDWICH && (type == KEYBOARD_NUMBERS_PUNCTUATION ||
type == KEYBOARD_DECIMAL_PAD || type == KEYBOARD_NUMBER_PAD)) {
//turn off text UI in landscape mode b/c Android numeric passwords are not masked correctly in landscape mode.
if (type == KEYBOARD_NUMBERS_PUNCTUATION || type == KEYBOARD_DECIMAL_PAD || type == KEYBOARD_NUMBER_PAD) {
tv.setImeOptions(EditorInfo.IME_FLAG_NO_EXTRACT_UI);
}

Expand Down

0 comments on commit 7bd5af3

Please sign in to comment.