Skip to content

[FR]: Move TopicScreen user-facing strings to resources #2115

@ois0886

Description

@ois0886

Is there an existing issue for this?

  • I have searched the existing issues

Describe the problem

TopicScreen still contains a few hardcoded user-facing strings instead of string resources:

  • NiaLoadingWheel(contentDesc = "Loading news")
  • Text("Error")
  • Text("FOLLOWING")
  • Text("NOT FOLLOWING")

These strings are rendered from feature/topic/impl/src/main/kotlin/com/google/samples/apps/nowinandroid/feature/topic/impl/TopicScreen.kt.

Keeping them inline makes the topic screen less consistent with the rest of the app and prevents these labels and content descriptions from being localized.

This is separate from #2108 / #2109, which address the TopicUiState.Error -> TODO() crash. PR #2109 explicitly leaves these remaining TopicScreen TODOs out of scope.

Describe the solution

Move the remaining user-facing strings in TopicScreen to string resources and read them through stringResource, following the existing resource naming conventions for the topic feature.

Additional context

No response

Code of Conduct

  • I agree to follow this project Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions