PatternLockView icon indicating copy to clipboard operation
PatternLockView copied to clipboard

Bug: unable to set pattern when dot index exceeds 9

Open buffermet opened this issue 5 years ago • 0 comments

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".

bug_PatternLockView

buffermet avatar Jun 02 '19 11:06 buffermet