Skip to content

Commit

Permalink
Start the pattern indices from 1 instead of 0
Browse files Browse the repository at this point in the history
  • Loading branch information
lauriskr committed Aug 30, 2023
1 parent 9ea0534 commit eefd342
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,8 @@ class PatternLockView : GridLayout {
private fun generateSelectedIds() : ArrayList<Int> {
var result = ArrayList<Int>()
for(cell in selectedCells) {
result.add(cell.index)
// Start from 1
result.add(cell.index + 1)
}
return result
}
Expand Down

0 comments on commit eefd342

Please sign in to comment.