mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-11-10 22:36:49 +01:00
Finally fixes: https://github.com/vitorpamplona/amethyst/issues/436
This commit is contained in:
@@ -105,12 +105,7 @@ class ZapOptionstViewModel : ViewModel() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fun value(): Long? {
|
fun value(): Long? {
|
||||||
return try {
|
return customAmount.text.trim().toLongOrNull()
|
||||||
customAmount.text.trim().toLongOrNull()
|
|
||||||
} catch (e: Exception) {
|
|
||||||
if (e is CancellationException) throw e
|
|
||||||
null
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fun cancel() {}
|
fun cancel() {}
|
||||||
@@ -285,7 +280,7 @@ fun ZapButton(
|
|||||||
onPost: () -> Unit,
|
onPost: () -> Unit,
|
||||||
) {
|
) {
|
||||||
Button(
|
Button(
|
||||||
onClick = { onPost() },
|
onClick = { if (isActive) onPost() },
|
||||||
shape = ButtonBorder,
|
shape = ButtonBorder,
|
||||||
colors =
|
colors =
|
||||||
ButtonDefaults.buttonColors(
|
ButtonDefaults.buttonColors(
|
||||||
|
|||||||
Reference in New Issue
Block a user