Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make marquee text maintain talkback focus during marquee animation. #2148

Merged
merged 1 commit into from
Mar 19, 2024

Conversation

clickxu
Copy link
Collaborator

@clickxu clickxu commented Mar 19, 2024

WHAT

Make marquee text maintain talkback focus during marquee animation.

WHY

Currently, when Talkback focuses on the marquee title, the marquee loses focus after completing its first round of animation.

HOW

Add Modifier.semantics { focused = true } to the marquee text.

Checklist 📋

  • Add explicit visibility modifier and explicit return types for public declarations
  • Run spotless check
  • Run tests
  • Update metalava's signature text files

@clickxu clickxu requested a review from yschimke March 19, 2024 18:32
@@ -100,6 +102,7 @@ public fun MarqueeText(
inlineContent = inlineContent,
modifier = modifier
.then(controller.outsideMarqueeModifier)
.semantics { focused = true }
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this affect RSB at all?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, this only affects the talkback green frame focus. RSB works as it is, normally controls the volume.

@clickxu clickxu merged commit 4fc8f9a into google:main Mar 19, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants