2
0
mirror of https://github.com/fork-maintainers/iceraven-browser synced 2024-11-17 15:26:23 +00:00

Bug 1813877 - Announce page title with talkback when swiping on navbar

Talkback now announces the name of the tab switched to using
swipe left or right gestures on the navbar
This commit is contained in:
DreVla 2023-02-14 16:37:31 +02:00 committed by mergify[bot]
parent 15d10021cf
commit 1c906a5038
2 changed files with 4 additions and 0 deletions

View File

@ -143,6 +143,7 @@ import org.mozilla.fenix.onboarding.FenixOnboarding
import org.mozilla.fenix.perf.MarkersFragmentLifecycleCallbacks import org.mozilla.fenix.perf.MarkersFragmentLifecycleCallbacks
import org.mozilla.fenix.settings.SupportUtils import org.mozilla.fenix.settings.SupportUtils
import org.mozilla.fenix.settings.biometric.BiometricPromptFeature import org.mozilla.fenix.settings.biometric.BiometricPromptFeature
import org.mozilla.fenix.tabstray.ext.toDisplayTitle
import org.mozilla.fenix.theme.ThemeManager import org.mozilla.fenix.theme.ThemeManager
import org.mozilla.fenix.utils.allowUndo import org.mozilla.fenix.utils.allowUndo
import org.mozilla.fenix.wifi.SitePermissionsWifiIntegration import org.mozilla.fenix.wifi.SitePermissionsWifiIntegration
@ -1135,6 +1136,8 @@ abstract class BaseBrowserFragment :
updateThemeForSession(selectedTab) updateThemeForSession(selectedTab)
} }
binding.engineView.asView().contentDescription = selectedTab.toDisplayTitle()
if (browserInitialized) { if (browserInitialized) {
view?.let { view?.let {
fullScreenChanged(false) fullScreenChanged(false)

View File

@ -32,6 +32,7 @@
android:id="@+id/engineView" android:id="@+id/engineView"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:accessibilityLiveRegion="polite"
android:visibility="gone" /> android:visibility="gone" />
</mozilla.components.ui.widgets.VerticalSwipeRefreshLayout> </mozilla.components.ui.widgets.VerticalSwipeRefreshLayout>