NTP-59414 | Issue fix Lite check box and clou deep link (#16158)

Co-authored-by: Shaurya Rehan <shaurya.rehan@navi.com>
This commit is contained in:
Aditya Narayan Malik
2025-05-14 16:12:18 +05:30
committed by GitHub
parent 9af56de494
commit 4a21f30798
2 changed files with 10 additions and 2 deletions

View File

@@ -39,12 +39,13 @@ import androidx.compose.foundation.text.BasicTextField
import androidx.compose.foundation.text.KeyboardActions
import androidx.compose.foundation.text.KeyboardOptions
import androidx.compose.foundation.verticalScroll
import androidx.compose.material.Checkbox
import androidx.compose.material.Divider
import androidx.compose.material.ExperimentalMaterialApi
import androidx.compose.material.Scaffold
import androidx.compose.material.TextFieldDefaults
import androidx.compose.material.ripple
import androidx.compose.material3.Checkbox
import androidx.compose.material3.CheckboxDefaults
import androidx.compose.material3.MaterialTheme
import androidx.compose.runtime.Composable
import androidx.compose.runtime.derivedStateOf
@@ -96,6 +97,7 @@ import com.navi.pay.R
import com.navi.pay.analytics.NaviPayAnalytics
import com.navi.pay.common.model.view.CheckBalanceState
import com.navi.pay.common.theme.color.NaviPayColor
import com.navi.pay.common.theme.color.NaviPayColor.borderDefault
import com.navi.pay.common.theme.color.NaviPayColor.ctaPrimary
import com.navi.pay.common.ui.CustomClickableText
import com.navi.pay.common.ui.IconWithDescriptionPair
@@ -1275,7 +1277,6 @@ fun LiteAutoTopUpCheckBoxSection(
Checkbox(
modifier =
Modifier.padding(top = 4.dp)
.alpha(alphaAdjusted)
.size(16.dp)
.scale(0.95f)
.clip(shape = RoundedCornerShape(4.dp)),
@@ -1284,6 +1285,11 @@ fun LiteAutoTopUpCheckBoxSection(
onCheckedChange = {
if (!maxWalletBalanceReached && shouldBeDisabled.not()) onCheckedChanged()
},
colors =
CheckboxDefaults.colors(
checkedColor = ctaPrimary.copy(alpha = alphaAdjusted),
uncheckedColor = NaviPayColor.black.copy(alpha = alphaAdjusted),
),
)
Column {

View File

@@ -243,6 +243,8 @@ constructor(
val preferredBankCode =
naviPayActivityDataProvider.getIntentData()?.getString("preferredBankCode")
?: return false
naviPayActivityDataProvider.deleteIntentData("preferredBankCode")
val linkedAccount =
linkedAccounts.value.firstOrNull {
it.bankCode == preferredBankCode && it.accountType == AccountType.UPICREDIT.name