From 770e6fba72135876d5749816c75ddc766f6b1ff7 Mon Sep 17 00:00:00 2001
From: "google-labs-jules[bot]"
<161369871+google-labs-jules[bot]@users.noreply.github.com>
Date: Sat, 9 May 2026 23:59:08 +0000
Subject: [PATCH] Accessibility: Add tooltipText to poll option buttons in
compose fragment
This matches the existing contentDescription to provide hover/long-press tooltips on API 26+ devices.
Co-authored-by: dlukt <201112286+dlukt@users.noreply.github.com>
---
mastodon/src/main/res/layout/fragment_compose.xml | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/mastodon/src/main/res/layout/fragment_compose.xml b/mastodon/src/main/res/layout/fragment_compose.xml
index 44764b848..a2713eebf 100644
--- a/mastodon/src/main/res/layout/fragment_compose.xml
+++ b/mastodon/src/main/res/layout/fragment_compose.xml
@@ -241,7 +241,8 @@
android:src="@drawable/ic_fluent_add_24_filled"
android:tint="@color/button_text_m3_tonal"
android:background="@drawable/bg_button_m3_tonal"
- android:contentDescription="@string/add_poll_option"/>
+ android:contentDescription="@string/add_poll_option"
+ android:tooltipText="@string/add_poll_option"/>
+ android:contentDescription="@string/delete_poll_option"
+ android:tooltipText="@string/delete_poll_option"/>