Skip to content

Commit

Permalink
small improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitry-Borodin committed Apr 29, 2024
1 parent c50bf26 commit 06a6b72
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import androidx.fragment.app.FragmentActivity
import io.parity.signer.R
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.StateFlow
import kotlinx.coroutines.flow.asStateFlow
import kotlin.coroutines.suspendCoroutine


Expand Down Expand Up @@ -46,7 +47,7 @@ class Authentication {
private lateinit var biometricPrompt: BiometricPrompt

private val _auth = MutableStateFlow<Boolean>(false)
val auth: StateFlow<Boolean> = _auth
val auth: StateFlow<Boolean> = _auth.asStateFlow()

fun authenticate(activity: FragmentActivity, onSuccess: () -> Unit) {
if (FeatureFlags.isEnabled(FeatureOption.SKIP_UNLOCK_FOR_DEVELOPMENT)) {
Expand Down

0 comments on commit 06a6b72

Please sign in to comment.