diff --git a/android/navi-bbps/src/main/kotlin/com/navi/bbps/common/model/config/NaviBbpsDefaultConfig.kt b/android/navi-bbps/src/main/kotlin/com/navi/bbps/common/model/config/NaviBbpsDefaultConfig.kt index f41efacb65..de6a5d6ec9 100644 --- a/android/navi-bbps/src/main/kotlin/com/navi/bbps/common/model/config/NaviBbpsDefaultConfig.kt +++ b/android/navi-bbps/src/main/kotlin/com/navi/bbps/common/model/config/NaviBbpsDefaultConfig.kt @@ -495,6 +495,11 @@ data class ConfigMessage( @SerializedName("billDetailsRefreshedDescription") val billDetailsUpdatedDescription: String = "We have fetched the latest bill details from your biller. The amount or due date may have changed. Please review before proceeding.", + @SerializedName("gmailScopeErrorTitle") + val gmailScopeErrorTitle: String = "Something seems wrong", + @SerializedName("gmailScopeErrorTitle") + val gmailScopeErrorDescription: String = + "Unfortunately we have encountered a technical issue. Please try again after some time.", ) data class CoinUtilisationConfig( diff --git a/android/navi-bbps/src/main/kotlin/com/navi/bbps/common/ui/NaviBbpsCommonComposable.kt b/android/navi-bbps/src/main/kotlin/com/navi/bbps/common/ui/NaviBbpsCommonComposable.kt index 0d8a37c6c2..d69f64b08e 100644 --- a/android/navi-bbps/src/main/kotlin/com/navi/bbps/common/ui/NaviBbpsCommonComposable.kt +++ b/android/navi-bbps/src/main/kotlin/com/navi/bbps/common/ui/NaviBbpsCommonComposable.kt @@ -334,6 +334,7 @@ fun BottomSheetContentWithIconHeaderPrimarySecondaryButton( NaviText( text = header, fontSize = 16.sp, + lineHeight = 24.sp, fontFamily = naviFontFamily, fontWeight = getFontWeight(FontWeightEnum.NAVI_BODY_DEMI_BOLD), color = NaviBbpsColor.textPrimary, @@ -344,6 +345,7 @@ fun BottomSheetContentWithIconHeaderPrimarySecondaryButton( NaviText( text = description, fontSize = 14.sp, + lineHeight = 22.sp, fontFamily = naviFontFamily, fontWeight = getFontWeight(FontWeightEnum.NAVI_BODY_REGULAR), color = NaviBbpsColor.textTertiary, diff --git a/android/navi-bbps/src/main/kotlin/com/navi/bbps/common/viewmodel/OriginBillDetectionHandler.kt b/android/navi-bbps/src/main/kotlin/com/navi/bbps/common/viewmodel/OriginBillDetectionHandler.kt index 0ec7eb7535..3e6a465fb6 100644 --- a/android/navi-bbps/src/main/kotlin/com/navi/bbps/common/viewmodel/OriginBillDetectionHandler.kt +++ b/android/navi-bbps/src/main/kotlin/com/navi/bbps/common/viewmodel/OriginBillDetectionHandler.kt @@ -121,12 +121,20 @@ constructor( permission == DetectedBillSource.EMAIL.name && GMAIL_READ_ONLY_SCOPE !in (grantedEmailScopes.orEmpty()) ) { - updateOpenBottomSheet(false) val errorConfig = naviBbpsBaseVM .getGenericErrorConfig() - .copy(code = ERR_NO_READ_ONLY_GMAIL_SCOPE, tag = ERR_NO_READ_ONLY_GMAIL_SCOPE) + .copy( + code = ERR_NO_READ_ONLY_GMAIL_SCOPE, + tag = ERR_NO_READ_ONLY_GMAIL_SCOPE, + title = naviBbpsDefaultConfig.configMessage.gmailScopeErrorTitle, + description = naviBbpsDefaultConfig.configMessage.gmailScopeErrorDescription, + ) naviBbpsBaseVM.notifyError(errorConfig) + + delay(500) + updateBottomSheetCancellable(false) + updateOpenBottomSheet(false) return }