mirror of
https://github.com/yogeshpaliyal/KeyPass.git
synced 2025-12-21 11:00:11 -06:00
Update QRScanner.kt (#1097)
This commit is contained in:
committed by
GitHub
parent
8925efb8cb
commit
a8d2388040
@@ -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()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user