refactor: move biometric prompt trigger to UI

This commit is contained in:
2026-06-06 17:12:21 +02:00
parent c7888f7bfd
commit 368d03d263
3 changed files with 44 additions and 46 deletions
@@ -10,7 +10,6 @@ import com.bitcointxoko.gudariwallet.data.WalletRepository
import kotlinx.coroutines.flow.SharedFlow
import kotlinx.coroutines.flow.StateFlow
import kotlinx.coroutines.launch
import androidx.fragment.app.FragmentActivity
import com.bitcointxoko.gudariwallet.data.BalancePrefsStore
import com.bitcointxoko.gudariwallet.data.LightningAddressStore
import com.bitcointxoko.gudariwallet.ui.balance.BalanceViewModel
@@ -103,12 +102,9 @@ class WalletViewModel(
fun payLnurlInvoice(state: SendState.LnurlInvoiceReady, strings: SendStrings) =
sendVm.payLnurlInvoice(state, strings)
fun requestPayment(
activity : FragmentActivity,
subtitle : String,
strings : SendStrings,
pay : () -> Unit,
) = sendVm.requestPayment(activity, subtitle, strings, pay)
fun onAuthFailed(message: String, strings: SendStrings) {
sendVm.onAuthFailed(message, strings)
}
fun resetSendState() = sendVm.resetSendState()
val sendEvents: SharedFlow<SendEvent> = sendVm.events