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