Skip to content

Commit 25c0cd1

Browse files
authored
Merge pull request #139 from code-payments/fix/vibrate-with-giftcards
fix: vibrate when sending giftcards
2 parents bd2a112 + 2d61db8 commit 25c0cd1

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

app/src/main/java/com/getcode/view/main/home/HomeViewModel.kt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -990,6 +990,7 @@ class HomeViewModel @Inject constructor(
990990
loadingIndicatorTimer = Timer().schedule(1000) {
991991
uiFlow.update { it.copy(isRemoteSendLoading = false) }
992992
}
993+
993994
analytics.remoteSendOutgoing(
994995
kin = amount.kin,
995996
currencyCode = amount.rate.currency
@@ -1051,7 +1052,10 @@ class HomeViewModel @Inject constructor(
10511052
positiveText = getString(R.string.action_yes),
10521053
negativeText = getString(R.string.action_noTryAgain),
10531054
tertiaryText = getString(R.string.action_cancelSend),
1054-
onPositive = { cancelSend(style = PresentationStyle.Pop) },
1055+
onPositive = {
1056+
cancelSend(style = PresentationStyle.Pop)
1057+
vibrator.vibrate()
1058+
},
10551059
onNegative = { showRemoteSendDialog(context, giftCard, amount) },
10561060
onTertiary = {
10571061
cancelRemoteSend(giftCard, amount)

0 commit comments

Comments
 (0)