NTP-8487 | Mehul | back navigation keyboard<>cursor fix (#13267)
This commit is contained in:
@@ -126,6 +126,9 @@ constructor(
|
||||
private val _rewardsNudgeDetailEntity = MutableStateFlow<NudgeDetailEntity?>(null)
|
||||
val rewardsNudgeDetailEntity = _rewardsNudgeDetailEntity.asStateFlow()
|
||||
|
||||
private val _isBackFromNavigation = MutableStateFlow(false)
|
||||
val isBackFromNavigation = _isBackFromNavigation.asStateFlow()
|
||||
|
||||
private val _isNudgeLitmusExperimentEnabled = MutableStateFlow(false)
|
||||
val isNudgeLitmusExperimentEnabled = _isNudgeLitmusExperimentEnabled.asStateFlow()
|
||||
|
||||
@@ -493,6 +496,7 @@ constructor(
|
||||
)
|
||||
notifyError(billDetailsResponse)
|
||||
}
|
||||
_isBackFromNavigation.update { true }
|
||||
_isBillDetailsLoading.update { false }
|
||||
}
|
||||
|
||||
|
||||
@@ -152,6 +152,8 @@ fun CustomerDataInputScreen(
|
||||
customerDataInputViewModel.rewardsNudgeDetailEntity.collectAsStateWithLifecycle()
|
||||
val isNudgeLitmusExperimentEnabled by
|
||||
customerDataInputViewModel.isNudgeLitmusExperimentEnabled.collectAsStateWithLifecycle()
|
||||
val isBackFromNavigation by
|
||||
customerDataInputViewModel.isBackFromNavigation.collectAsStateWithLifecycle()
|
||||
|
||||
LaunchedEffect(Unit) {
|
||||
naviBbpsAnalytics.onLanded(
|
||||
@@ -302,7 +304,9 @@ fun CustomerDataInputScreen(
|
||||
Spacer(modifier = Modifier.weight(1f))
|
||||
Spacer(modifier = Modifier.height(48.dp))
|
||||
|
||||
LaunchedEffect(Unit) { showKeyboard = true }
|
||||
if (!isBackFromNavigation) {
|
||||
LaunchedEffect(Unit) { showKeyboard = true }
|
||||
}
|
||||
}
|
||||
is CustomerInputScreenState.Error -> Unit
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user