File tree Expand file tree Collapse file tree
app/src/main/java/com/getcode/view/main/home Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ package com.getcode.view.main.home
22
33import android.Manifest
44import android.app.Activity
5+ import androidx.activity.compose.BackHandler
56import androidx.compose.animation.AnimatedContent
67import androidx.compose.animation.AnimatedVisibility
78import androidx.compose.animation.EnterExitState
@@ -450,6 +451,10 @@ private fun BillContainer(
450451 canCancel = true
451452 }
452453 }
454+
455+ BackHandler (updatedState.billState.bill is Bill .Tip && canCancel) {
456+ homeViewModel.cancelSend()
457+ }
453458 }
454459
455460 // Bill Received Bottom Dialog
Original file line number Diff line number Diff line change @@ -199,7 +199,6 @@ class HomeViewModel @Inject constructor(
199199 private val cashLinkManager : CashLinkManager ,
200200 private val permissionChecker : PermissionChecker ,
201201 private val notificationManager : NotificationManagerCompat ,
202- private val codeScanner : KikCodeScannerImpl ,
203202 appSettings : AppSettingsRepository ,
204203 betaFlagsRepository : BetaFlagsRepository ,
205204 features : FeatureRepository ,
You can’t perform that action at this time.
0 commit comments