Update QRScanner.kt (#1097)

This commit is contained in:
Yogesh Choudhary Paliyal
2025-02-21 09:26:26 +05:30
committed by GitHub
parent 8925efb8cb
commit a8d2388040

View File

@@ -6,6 +6,7 @@ import android.content.Intent
import androidx.activity.result.contract.ActivityResultContract
import com.google.zxing.integration.android.IntentIntegrator
import com.yogeshpaliyal.common.constants.ScannerType
import com.yogeshpaliyal.keypass.MyApplication
class QRScanner : ActivityResultContract<Int, QRScannerResult>() {
@@ -19,6 +20,7 @@ class QRScanner : ActivityResultContract<Int, QRScannerResult>() {
} else {
null
}
(context.applicationContext as? MyApplication)?.activityLaunchTriggered()
return intentIntegration?.setPrompt("")?.createScanIntent() ?: Intent()
}