NTP-54466 | Divyesh | remove redundant bill refresh call and add customer param in postpaid (#16179)
This commit is contained in:
@@ -388,6 +388,7 @@ constructor(
|
||||
isRootScreen = isRootScreen,
|
||||
source = source,
|
||||
initialSource = initialSource,
|
||||
isBillSyncRequiredInBackground = false,
|
||||
)
|
||||
|
||||
_navigateToNextScreen.emit(destination)
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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()
|
||||
}
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user