2
0
mirror of https://github.com/fork-maintainers/iceraven-browser synced 2024-11-19 09:25:34 +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

(cherry picked from commit ce68e6f88e8bbfe096f4843c6f393f259dde6248)
This commit is contained in:
DreVla 2023-02-14 16:37:31 +02:00 committed by mergify[bot]
parent ba03efc890
commit b0aaa43961
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.settings.SupportUtils
import org.mozilla.fenix.settings.biometric.BiometricPromptFeature
import org.mozilla.fenix.tabstray.ext.toDisplayTitle
import org.mozilla.fenix.theme.ThemeManager
import org.mozilla.fenix.utils.allowUndo
import org.mozilla.fenix.wifi.SitePermissionsWifiIntegration
@ -1135,6 +1136,8 @@ abstract class BaseBrowserFragment :
updateThemeForSession(selectedTab)
}
binding.engineView.asView().contentDescription = selectedTab.toDisplayTitle()
if (browserInitialized) {
view?.let {
fullScreenChanged(false)

View File

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