Skip to content

Commit 1269caa

Browse files
committed
fix(flipcash): correct toast timing for cash links
Signed-off-by: Brandon McAnsh <git@bmcreations.dev>
1 parent 28e2ace commit 1269caa

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

apps/flipcash/shared/session/src/main/kotlin/com/flipcash/app/session/internal/RealSessionController.kt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,8 @@ class RealSessionController @Inject constructor(
349349
ShareResult.CopiedToClipboard -> {
350350
cancelSend(PresentationStyle.Pop)
351351
vibrator.vibrate()
352+
toastController.show(amount)
353+
bringActivityFeedCurrent()
352354
trace(
353355
tag = "Session",
354356
message = "Cash link copied to clipboard",
@@ -362,6 +364,8 @@ class RealSessionController @Inject constructor(
362364
is ShareResult.SharedToApp -> {
363365
cancelSend(PresentationStyle.Pop)
364366
vibrator.vibrate()
367+
toastController.show(amount)
368+
bringActivityFeedCurrent()
365369
trace(
366370
tag = "Session",
367371
message = "Cash link shared with ${result.to}",
@@ -396,8 +400,6 @@ class RealSessionController @Inject constructor(
396400
amount = amount,
397401
owner = owner,
398402
onFunded = {
399-
toastController.show(it)
400-
bringActivityFeedCurrent()
401403
shareSheetController.reset()
402404
cont.resume(Result.success(it))
403405
},

0 commit comments

Comments
 (0)