mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-03-18 05:41:56 +01:00
Finally fixes: https://github.com/vitorpamplona/amethyst/issues/436
This commit is contained in:
parent
3a2045eccc
commit
b5341f67e0
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user