Skip to content

Improve timeline switcher contentDescription and tooltip for accessibility#103

Closed
Copilot wants to merge 2 commits intopalette-ux-timeline-switcher-a11y-3408070541363600791from
copilot/sub-pr-100
Closed

Improve timeline switcher contentDescription and tooltip for accessibility#103
Copilot wants to merge 2 commits intopalette-ux-timeline-switcher-a11y-3408070541363600791from
copilot/sub-pr-100

Conversation

Copy link

Copilot AI commented Feb 27, 2026

The timeline switcher's contentDescription was set to just the timeline name (e.g., "Home"), omitting the control's purpose. It also called getTitle() twice and never updated tooltipText to match.

Changes

  • New string resource sk_switch_timeline_content_description ("Switch timeline: %s") — conveys both action and current timeline name to screen readers
  • updateSwitcherIcon — stores title in a local variable; derives contentDescription and tooltipText (API 26+) from the same formatted string
CharSequence currentTimelineTitle = timelines[i].getTitle(getContext());
timelineTitle.setText(currentTimelineTitle);
String switcherDescription = getString(R.string.sk_switch_timeline_content_description, currentTimelineTitle);
switcher.setContentDescription(switcherDescription);
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
    switcher.setTooltipText(switcherDescription);
}

💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

…itcher

Co-authored-by: dlukt <201112286+dlukt@users.noreply.github.com>
Copy link
Author

Copilot AI commented Feb 27, 2026

Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • dl.google.com
    • Triggering command: /usr/lib/jvm/temurin-17-jdk-amd64/bin/java /usr/lib/jvm/temurin-17-jdk-amd64/bin/java --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.invoke=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED --add-opens=java.base/java.nio.charset=ALL-UNNAMED --add-opens=java.base/java.net=ALL-UNNAMED --add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED --add-opens=java.xml/javax.xml.namespace=ALL-UNNAMED -Xmx2048m -Dfile.encoding=UTF-8 -Duser.country -Duser.language=en -Duser.variant -cp /home/REDACTED/.gradle/wrapper/dists/gradle-8.14.1-bin/baw1sv0jfoi8rxs14qo3h49cs/gradle-8.14.1/lib/gradle-daemon-main-8.14.1.jar (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Copilot AI changed the title [WIP] Improve accessibility of timeline switcher in Home tab Improve timeline switcher contentDescription and tooltip for accessibility Feb 27, 2026
@dlukt dlukt closed this Feb 27, 2026
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