am 7e7912de: ChooseLockPassword: allow spaces in passwords

* commit '7e7912de4fb44481ded8e17d5ac1d7a1c9a0d184':
  ChooseLockPassword: allow spaces in passwords
This commit is contained in:
Nick Kralevich
2012-08-28 15:13:33 -07:00
committed by Android Git Automerger

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') {