PatternLockView
PatternLockView copied to clipboard
fix ArrayIndexOutOfBoundsException when sDots[][] index >= length
When changing the pattern dot count using setDotCount() PatternLockView.java throws an ArrayIndexOutOfBoundsException because sDots is not updated when setDotCount() is called.
Changelog:
-
sDotsis changed to a private static Dot[][] of PatternLockView class. -
sDotsis updated to a new Dot[][] of the appropriate dotCount size.
closes https://github.com/aritraroy/PatternLockView/issues/10