Skip to content

Commit

Permalink
Update RequestAuthentication.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
aviraxp authored Jun 30, 2024
1 parent bc98b38 commit 82ae50f
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import android.app.Activity
import android.app.KeyguardManager
import android.content.Context
import android.content.Intent
import android.util.Log
import androidx.activity.result.contract.ActivityResultContract

class RequestAuthentication: ActivityResultContract<Unit, Boolean>() {
Expand All @@ -13,5 +14,6 @@ class RequestAuthentication: ActivityResultContract<Unit, Boolean>() {
.createConfirmDeviceCredentialIntent(null, null)

override fun parseResult(resultCode: Int, intent: Intent?) =
Log.d("aviraxp", "result $resultCode")
resultCode == Activity.RESULT_OK
}

0 comments on commit 82ae50f

Please sign in to comment.