PatternLockView
PatternLockView copied to clipboard
Bug: unable to set pattern when dot index exceeds 9
There is a bug in the PatternLockUtils lib where stringToPattern()
cannot convert every pattern combination.
Number values should not be saved in a string for pattern views with 4x4 dots and higher, because the tenth, eleventh and twelfth dot will be interpreted as "1", "0"
, "1", "1"
, and "1", "2"
, etc.
patternToString()
, patternToMd5()
, patternToSha1()
should include a separator between each dot (a comma for example), so that we can differentiate between "1", "0"
, and "10"
.