@@ -306,7 +306,7 @@ class RealSessionController @Inject constructor(
306
306
_state .update { it.copy(isCameraPermissionGranted = result == PermissionResult .Granted ) }
307
307
}
308
308
309
- override fun showBill (bill : Bill , vibrate : Boolean ) {
309
+ override fun showBill (bill : Bill ) {
310
310
if (bill.amount.converted.doubleValue == 0.0 ) return
311
311
val owner = userManager.accountCluster ? : return
312
312
@@ -350,7 +350,7 @@ class RealSessionController @Inject constructor(
350
350
message = " Cash link not sent. Restarting awaiting grab" ,
351
351
type = TraceType .User ,
352
352
)
353
- awaitBillGrab(bill, owner, vibrate )
353
+ awaitBillGrab(bill, owner)
354
354
}
355
355
}
356
356
),
@@ -361,14 +361,14 @@ class RealSessionController @Inject constructor(
361
361
)
362
362
}
363
363
}
364
- awaitBillGrab(bill, owner, vibrate )
364
+ awaitBillGrab(bill, owner)
365
365
}
366
366
}
367
367
}
368
368
}
369
369
}
370
370
371
- private fun awaitBillGrab (bill : Bill , owner : AccountCluster , vibrate : Boolean ) {
371
+ private fun awaitBillGrab (bill : Bill , owner : AccountCluster ) {
372
372
billController.awaitGrab(
373
373
amount = bill.amount,
374
374
owner = owner,
@@ -407,7 +407,7 @@ class RealSessionController @Inject constructor(
407
407
type = TraceType .User ,
408
408
)
409
409
}
410
- presentBillToUser(data, bill, vibrate )
410
+ presentBillToUser(data, bill)
411
411
},
412
412
)
413
413
}
@@ -612,7 +612,6 @@ class RealSessionController @Inject constructor(
612
612
toastController.enqueue(it, isDeposit = true )
613
613
showBill(
614
614
bill = Bill .Cash (amount = it, didReceive = true ),
615
- vibrate = true
616
615
)
617
616
checkPendingItemsInFeed()
618
617
bringActivityFeedCurrent()
@@ -700,7 +699,6 @@ class RealSessionController @Inject constructor(
700
699
toastController.enqueue(amount, isDeposit = true )
701
700
showBill(
702
701
bill = Bill .Cash (amount = amount, didReceive = true ),
703
- vibrate = true
704
702
)
705
703
checkPendingItemsInFeed()
706
704
bringActivityFeedCurrent()
@@ -718,7 +716,7 @@ class RealSessionController @Inject constructor(
718
716
)
719
717
}
720
718
721
- private fun presentBillToUser (data : List <Byte >, bill : Bill , isVibrate : Boolean = false ) {
719
+ private fun presentBillToUser (data : List <Byte >, bill : Bill ) {
722
720
if (billController.state.value.bill != null ) return
723
721
724
722
if (bill.didReceive) {
@@ -727,6 +725,8 @@ class RealSessionController @Inject constructor(
727
725
valuation = PaymentValuation (bill.amount.converted),
728
726
)
729
727
}
728
+
729
+ vibrator.vibrate()
730
730
}
731
731
732
732
val style: BillDeterminationResult =
@@ -756,10 +756,6 @@ class RealSessionController @Inject constructor(
756
756
// }
757
757
// )
758
758
}
759
-
760
- if (isVibrate) {
761
- vibrator.vibrate()
762
- }
763
759
}
764
760
765
761
0 commit comments