Vitor Pamplona 2024-02-02 18:23:44 -05:00
rodzic 3a2045eccc
commit b5341f67e0
1 zmienionych plików z 2 dodań i 7 usunięć

Wyświetl plik

@ -105,12 +105,7 @@ class ZapOptionstViewModel : ViewModel() {
}
fun value(): Long? {
return try {
customAmount.text.trim().toLongOrNull()
} catch (e: Exception) {
if (e is CancellationException) throw e
null
}
return customAmount.text.trim().toLongOrNull()
}
fun cancel() {}
@ -285,7 +280,7 @@ fun ZapButton(
onPost: () -> Unit,
) {
Button(
onClick = { onPost() },
onClick = { if (isActive) onPost() },
shape = ButtonBorder,
colors =
ButtonDefaults.buttonColors(