NTP-54466 | Divyesh | remove redundant bill refresh call and add customer param in postpaid (#16179)

This commit is contained in:
Divyesh Shinde
2025-05-15 15:46:48 +05:30
committed by GitHub
parent c398061383
commit fc663beee5
4 changed files with 8 additions and 2 deletions

View File

@@ -388,6 +388,7 @@ constructor(
isRootScreen = isRootScreen,
source = source,
initialSource = initialSource,
isBillSyncRequiredInBackground = false,
)
_navigateToNextScreen.emit(destination)

View File

@@ -411,7 +411,7 @@ constructor(
PayBillSource.Others(
billDetailsEntity = billDetailsEntity,
billerDetailsEntity = billerDetailsEntity,
customerParams = mapOf(),
customerParams = customerParams,
billerId = billerItemEntity.billerId,
formattedLastPaidDate = EMPTY,
formattedLastPaidAmount = EMPTY,
@@ -430,6 +430,7 @@ constructor(
isRootScreen = isRootScreen,
source = NaviBbpsScreen.NAVI_BBPS_CONTACT_LIST_SCREEN.name,
initialSource = initialSource,
isBillSyncRequiredInBackground = false,
)
)
} else {

View File

@@ -174,6 +174,9 @@ constructor(
private val isRootScreen = savedStateHandle.get<Boolean>("isRootScreen") == true
private val isBillSyncRequiredInBackground =
savedStateHandle.get<Boolean>("isBillSyncRequiredInBackground") == true
private val source = savedStateHandle.get<String>("source").orEmpty()
private val initialSource = savedStateHandle.get<String>("initialSource") ?: ""
@@ -491,7 +494,7 @@ constructor(
FirebaseRemoteConfigHelper.getLong(
key = NAVI_BBPS_BILL_REFRESH_DURATION,
defaultValue = 10000L,
)
) && isBillSyncRequiredInBackground
) {
refetchBillDetails()
}

View File

@@ -170,6 +170,7 @@ fun PayBillScreen(
isRootScreen: Boolean = false,
source: String,
initialSource: String,
isBillSyncRequiredInBackground: Boolean = true,
naviBbpsAnalytics: NaviBbpsAnalytics.PayBill = NaviBbpsAnalytics.INSTANCE.PayBill(),
) {
val billDetailsEntity by payBillViewModel.billDetailsEntity.collectAsStateWithLifecycle()