diff options
author | Nick Kralevich <nnk@google.com> | 2012-08-28 10:33:45 -0700 |
---|---|---|
committer | Nick Kralevich <nnk@google.com> | 2012-08-28 13:41:37 -0700 |
commit | 7e7912de4fb44481ded8e17d5ac1d7a1c9a0d184 (patch) | |
tree | 0ceec4f463e460636bc4b566fc249fa86ea9e482 | |
parent | ca786f3989c93ac1c368151c1cede7b47fc10711 (diff) | |
download | packages_apps_Settings-7e7912de4fb44481ded8e17d5ac1d7a1c9a0d184.zip packages_apps_Settings-7e7912de4fb44481ded8e17d5ac1d7a1c9a0d184.tar.gz packages_apps_Settings-7e7912de4fb44481ded8e17d5ac1d7a1c9a0d184.tar.bz2 |
ChooseLockPassword: allow spaces in passwords
This fixes http://code.google.com/p/android/issues/detail?id=35988
Change-Id: I1880d7e41028f034e75a048226cce3bf96845a09
-rw-r--r-- | src/com/android/settings/ChooseLockPassword.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/settings/ChooseLockPassword.java b/src/com/android/settings/ChooseLockPassword.java index 2940442..4657be5 100644 --- a/src/com/android/settings/ChooseLockPassword.java +++ b/src/com/android/settings/ChooseLockPassword.java @@ -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') { |