ChooseLockPassword: allow spaces in passwords

This fixes http://code.google.com/p/android/issues/detail?id=35988

Change-Id: I1880d7e41028f034e75a048226cce3bf96845a09
This commit is contained in:
Nick Kralevich
2012-08-28 10:33:45 -07:00
parent ca786f3989
commit 7e7912de4f

View File

@@ -300,8 +300,8 @@ public class ChooseLockPassword extends PreferenceActivity {
int nonletter = 0;
for (int i = 0; i < password.length(); i++) {
char c = password.charAt(i);
// allow non white space Latin-1 characters only
if (c <= 32 || c > 127) {
// allow non control Latin-1 characters only
if (c < 32 || c > 127) {
return getString(R.string.lockpassword_illegal_character);
}
if (c >= '0' && c <= '9') {