Skip to content

Commit

Permalink
LMN-678 BpkAppSearchModal subtitle annotatedString (#1772)
Browse files Browse the repository at this point in the history
  • Loading branch information
LokmaneKrizou authored Oct 30, 2023
1 parent e252b09 commit 184ea90
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ internal fun contentResult() = BpkAppSearchModalResult.Content(
title = buildAnnotatedString {
append(stringResource(id = R.string.current_location_title))
},
subtitle = stringResource(id = R.string.current_location_subtitle),
subtitle = buildAnnotatedString { append(stringResource(id = R.string.current_location_subtitle)) },
icon = BpkIcon.UseLocation,
) {},
),
Expand All @@ -141,7 +141,7 @@ internal fun contentResult() = BpkAppSearchModalResult.Content(
items = listOf(
BpkItem(
title = buildAnnotatedString { append(stringResource(id = R.string.city_london)) },
subtitle = stringResource(id = R.string.search_modal_item_subtitle),
subtitle = buildAnnotatedString { append(stringResource(id = R.string.search_modal_item_subtitle)) },
icon = BpkIcon.City,
onItemSelected = {},

Expand All @@ -153,14 +153,14 @@ internal fun contentResult() = BpkAppSearchModalResult.Content(
}
append(" Heathrow")
},
subtitle = stringResource(id = R.string.search_modal_item_subtitle),
subtitle = buildAnnotatedString { append(stringResource(id = R.string.search_modal_item_subtitle)) },
icon = BpkIcon.Airports,
onItemSelected = {},

),
BpkItem(
title = buildAnnotatedString { append(stringResource(id = R.string.city_rome)) },
subtitle = stringResource(id = R.string.search_modal_item_subtitle),
subtitle = buildAnnotatedString { append(stringResource(id = R.string.search_modal_item_subtitle)) },
icon = BpkIcon.Airports,
onItemSelected = {},

Expand All @@ -174,28 +174,28 @@ internal fun contentResult() = BpkAppSearchModalResult.Content(
items = listOf(
BpkItem(
title = buildAnnotatedString { append(stringResource(id = R.string.city_shenzhen)) },
subtitle = stringResource(id = R.string.search_modal_item_subtitle),
subtitle = buildAnnotatedString { append(stringResource(id = R.string.search_modal_item_subtitle)) },
icon = BpkIcon.City,
onItemSelected = {},

),
BpkItem(
title = buildAnnotatedString { append(stringResource(id = R.string.city_paris)) },
subtitle = stringResource(id = R.string.search_modal_item_subtitle),
subtitle = buildAnnotatedString { append(stringResource(id = R.string.search_modal_item_subtitle)) },
icon = BpkIcon.City,
onItemSelected = {},

),
BpkItem(
title = buildAnnotatedString { append(stringResource(id = R.string.city_algiers)) },
subtitle = stringResource(id = R.string.search_modal_item_subtitle),
subtitle = buildAnnotatedString { append(stringResource(id = R.string.search_modal_item_subtitle)) },
icon = BpkIcon.City,
onItemSelected = {},

),
BpkItem(
title = buildAnnotatedString { append(stringResource(id = R.string.city_madrid)) },
subtitle = stringResource(id = R.string.search_modal_item_subtitle),
subtitle = buildAnnotatedString { append(stringResource(id = R.string.search_modal_item_subtitle)) },
icon = BpkIcon.City,
onItemSelected = {},

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ data class BpkSection(val headings: BpkSectionHeading? = null, val items: List<B

data class BpkItem(
val title: AnnotatedString,
val subtitle: String,
val subtitle: AnnotatedString,
val icon: BpkIcon,
val onItemSelected: () -> Unit,
)
Expand Down

0 comments on commit 184ea90

Please sign in to comment.