add api call indicator to nfc
Auto Tag on Version Change / check-version (push) Failing after 14m27s
Auto Tag on Version Change / check-version (push) Failing after 14m27s
This commit is contained in:
@@ -620,10 +620,12 @@ ViewCompat.setOnApplyWindowInsetsListener(binding.contentLayout) { v, insets ->
|
||||
return@launch
|
||||
}
|
||||
|
||||
(activity as? HomeActivity)?.setRefreshing(true)
|
||||
val otp = Totp.generate(otpSeed)
|
||||
val result = withContext(Dispatchers.IO) {
|
||||
runCatching { BmlTapToPayClient().fetchTokens(session, item.account.internalId, otp) }
|
||||
}
|
||||
(activity as? HomeActivity)?.setRefreshing(false)
|
||||
val token = result.getOrNull()?.firstOrNull()
|
||||
|
||||
if (!isTapMode) return@launch // user cancelled while we were fetching
|
||||
|
||||
Reference in New Issue
Block a user