refactor: move biometric prompt trigger to UI
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user