For #25025 - Old imports cleanup.

Importing `R.string` does allow to avoid the `R` when using a String from
Resources but seems like a small gain to break app consistency.
pull/543/head
Mugurell 2 years ago committed by mergify[bot]
parent 2074131a58
commit 75a2ed8c30

@ -25,7 +25,6 @@ import androidx.recyclerview.widget.RecyclerView
import mozilla.components.lib.state.ext.observeAsComposableState
import mozilla.components.service.pocket.PocketStory.PocketRecommendedStory
import org.mozilla.fenix.R
import org.mozilla.fenix.R.string
import org.mozilla.fenix.components.components
import org.mozilla.fenix.compose.ComposeViewHolder
import org.mozilla.fenix.compose.SectionHeader
@ -91,7 +90,7 @@ fun PocketStoriesViewHolderPreview() {
FirefoxTheme(theme = Theme.getTheme(isPrivate = false)) {
Column {
SectionHeader(
text = stringResource(string.pocket_stories_header_1),
text = stringResource(R.string.pocket_stories_header_1),
modifier = Modifier
.fillMaxWidth()
.padding(horizontal = 16.dp)

Loading…
Cancel
Save