PatternLockView icon indicating copy to clipboard operation
PatternLockView copied to clipboard

fix ArrayIndexOutOfBoundsException when sDots[][] index >= length

Open buffermet opened this issue 6 years ago • 0 comments

When changing the pattern dot count using setDotCount() PatternLockView.java throws an ArrayIndexOutOfBoundsException because sDots is not updated when setDotCount() is called.

Changelog:

  • sDots is changed to a private static Dot[][] of PatternLockView class.
  • sDots is updated to a new Dot[][] of the appropriate dotCount size.

closes https://github.com/aritraroy/PatternLockView/issues/10

buffermet avatar Sep 07 '19 17:09 buffermet