Skip to content

Commit

Permalink
fix: type mismatches
Browse files Browse the repository at this point in the history
  • Loading branch information
ssj9685 committed Feb 21, 2023
1 parent bc81722 commit 7bd0963
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class CardScannerCameraActivity : AppCompatActivity() {
private var cameraSelector: CameraSelector? = null
private var textRecognizer: TextRecognizer? = null
private var analysisUseCase: ImageAnalysis? = null
private lateinit var cardScannerOptions: CardScannerOptions? = null
private var cardScannerOptions: CardScannerOptions? = null
private lateinit var cameraExecutor: ExecutorService
lateinit var animator: ObjectAnimator
lateinit var scannerLayout: View
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@ package com.nateshmbhat.card_scanner.logger
import android.util.Log
import com.nateshmbhat.card_scanner.scanner_core.models.CardScannerOptions

fun debugLog(message: String, scannerOptions: CardScannerOptions, tag: String = "card_scanner_debug_log") {
fun debugLog(message: String, scannerOptions: CardScannerOptions?, tag: String = "card_scanner_debug_log") {
if(scannerOptions == null) {
return
}

if (scannerOptions.enableDebugLogs) {
Log.d(tag, message)
}
Expand Down

0 comments on commit 7bd0963

Please sign in to comment.