|
1 | 1 | package com.flipcash.app.session.internal |
2 | 2 |
|
3 | 3 | import com.flipcash.app.activityfeed.ActivityFeedCoordinator |
| 4 | +import com.flipcash.app.activityfeed.ActivityFeedUpdater |
4 | 5 | import com.flipcash.app.core.bill.Bill |
5 | 6 | import com.flipcash.app.core.bill.BillState |
6 | 7 | import com.flipcash.app.core.bill.PaymentValuation |
@@ -67,6 +68,7 @@ class RealSessionController @Inject constructor( |
67 | 68 | private val vibrator: Vibrator, |
68 | 69 | private val balanceUpdater: BalanceUpdater, |
69 | 70 | private val exchangeUpdater: ExchangeUpdater, |
| 71 | + private val activityFeedUpdater: ActivityFeedUpdater, |
70 | 72 | private val shareSheetController: ShareSheetController, |
71 | 73 | private val toastController: ToastController, |
72 | 74 | private val billingClient: BillingClient, |
@@ -124,12 +126,14 @@ class RealSessionController @Inject constructor( |
124 | 126 | if (userManager.authState.canAccessAuthenticatedApis) { |
125 | 127 | exchangeUpdater.poll(scope = scope, frequency = 10.seconds, startIn = 10.seconds) |
126 | 128 | balanceUpdater.poll(scope = scope, frequency = 60.seconds, startIn = 60.seconds) |
| 129 | + activityFeedUpdater.poll(scope = scope, frequency = 60.seconds, startIn = 60.seconds) |
127 | 130 | } |
128 | 131 | } |
129 | 132 |
|
130 | 133 | private fun stopPolling() { |
131 | 134 | exchangeUpdater.stop() |
132 | 135 | balanceUpdater.stop() |
| 136 | + activityFeedUpdater.stop() |
133 | 137 | } |
134 | 138 |
|
135 | 139 | private fun updateUserFlags() { |
|
0 commit comments