NTP-63647 | Sidharth Bamba | Bug/contact screen inconsistancy (#16239)
This commit is contained in:
@@ -110,6 +110,12 @@ fun RenderContactListScreen(
|
||||
multipleOffersDataList: Map<String, List<OfferData>>?,
|
||||
onFailedOrderCalloutClicked: (Pair<OrderEntity, MyBillEntity>) -> Unit,
|
||||
) {
|
||||
val shouldShowRecentBills =
|
||||
remember(key1 = areAllPermissionsGranted, key2 = permissionResult) {
|
||||
areAllPermissionsGranted ||
|
||||
!(permissionResult is NaviPermissionResult.ShowRationale ||
|
||||
permissionResult is NaviPermissionResult.HardDenied)
|
||||
}
|
||||
|
||||
Box(modifier = Modifier.fillMaxSize()) {
|
||||
Column(modifier = Modifier.fillMaxWidth()) {
|
||||
@@ -190,7 +196,7 @@ fun RenderContactListScreen(
|
||||
RecentBillTitle(title = stringResource(id = R.string.bbps_recents))
|
||||
}
|
||||
}
|
||||
if (animatedRecentBills.isNotEmpty()) {
|
||||
if (animatedRecentBills.isNotEmpty() && shouldShowRecentBills) {
|
||||
item {
|
||||
RecentBillsSection(
|
||||
viewModel = viewModel,
|
||||
|
||||
Reference in New Issue
Block a user