Skip to content

Commit 192b477

Browse files
authored
Merge pull request #563 from code-payments/fix/static-image-helper-actually-scan-medium
fix(scanner): work around iterator bug()
2 parents 539153e + 3633521 commit 192b477

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

app/src/main/java/com/kik/kikx/kikcodes/KikCodeScanner.kt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,8 @@ sealed class ScanQuality(val headerValue: Int) {
1111
data object Best : ScanQuality(10)
1212

1313
companion object {
14-
private val values = listOf(Low, Medium, High, Best)
15-
16-
fun iterator(): Iterator<ScanQuality> {
17-
return values.iterator()
14+
fun iterator(): List<ScanQuality> {
15+
return listOf(Low, Medium, High, Best)
1816
}
1917
}
2018
}

0 commit comments

Comments
 (0)