NTP-36791 | Divyesh | disable keyboard autofocus for all chip cases (#15369)
This commit is contained in:
@@ -384,7 +384,6 @@ constructor(
|
||||
updateInitialPaymentAmount(initialPaymentAmount = initialPaymentAmount)
|
||||
updatePaymentAmount(newAmountValue = initialPaymentAmount)
|
||||
updateIsBoxFirstSectionVisible(billDetailsEntity = billDetailsEntity)
|
||||
updateShouldAutoFocusOnAmount(paymentAmount = paymentAmount.value)
|
||||
}
|
||||
|
||||
private fun updateBillerValues(billerDetailsEntity: BillerDetailsEntity) {
|
||||
@@ -466,20 +465,20 @@ constructor(
|
||||
}
|
||||
}
|
||||
}
|
||||
if (
|
||||
!isCategoryOfTypeAmountChipsRequired(
|
||||
categoryId = billCategoryEntity?.categoryId.orEmpty()
|
||||
)
|
||||
) {
|
||||
updateShouldAutoFocusOnAmount(paymentAmount = paymentAmount.value)
|
||||
return
|
||||
}
|
||||
updateAmountChips(chipsConfigData = naviBbpsDefaultConfig.value.chipsConfigData)
|
||||
}
|
||||
}
|
||||
|
||||
private fun updateAmountChips(chipsConfigData: ChipsConfigData) {
|
||||
|
||||
if (
|
||||
!isCategoryOfTypeAmountChipsRequired(
|
||||
categoryId = billCategoryEntity?.categoryId.orEmpty()
|
||||
)
|
||||
) {
|
||||
return
|
||||
}
|
||||
|
||||
var minChipAmount = chipsConfigData.genericMinAmount
|
||||
var maxChipAmount = chipsConfigData.genericMaxAmount
|
||||
|
||||
@@ -521,6 +520,7 @@ constructor(
|
||||
)
|
||||
|
||||
if (secondChipAmount == ZERO_STRING) {
|
||||
updateShouldAutoFocusOnAmount(paymentAmount = paymentAmount.value)
|
||||
return@launch
|
||||
}
|
||||
|
||||
@@ -532,6 +532,7 @@ constructor(
|
||||
)
|
||||
|
||||
if (thirdChipAmount == ZERO_STRING) {
|
||||
updateShouldAutoFocusOnAmount(paymentAmount = paymentAmount.value)
|
||||
return@launch
|
||||
}
|
||||
|
||||
@@ -539,6 +540,7 @@ constructor(
|
||||
maxChipAmount - minChipAmount >= chipsConfigData.minimumRequiredDifference
|
||||
|
||||
if (!shouldShowChip) {
|
||||
updateShouldAutoFocusOnAmount(paymentAmount = paymentAmount.value)
|
||||
return@launch
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user