mirror of
https://github.com/fork-maintainers/iceraven-browser
synced 2024-11-11 13:11:01 +00:00
For #20024: Visit FAB after synced tabs in a11y traversal.
This helps focus on FAB without going through whole tab lists.
This commit is contained in:
parent
83a7ddcb3f
commit
df2efcf310
@ -6,6 +6,7 @@ package org.mozilla.fenix.tabstray
|
|||||||
|
|
||||||
import android.content.Context
|
import android.content.Context
|
||||||
import android.content.res.Configuration
|
import android.content.res.Configuration
|
||||||
|
import android.os.Build
|
||||||
import android.os.Bundle
|
import android.os.Bundle
|
||||||
import android.view.LayoutInflater
|
import android.view.LayoutInflater
|
||||||
import android.view.View
|
import android.view.View
|
||||||
@ -99,6 +100,9 @@ class TabsTrayFragment : AppCompatDialogFragment() {
|
|||||||
super.onViewCreated(view, savedInstanceState)
|
super.onViewCreated(view, savedInstanceState)
|
||||||
val activity = activity as HomeActivity
|
val activity = activity as HomeActivity
|
||||||
|
|
||||||
|
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP_MR1) {
|
||||||
|
new_tab_button.accessibilityTraversalAfter = tab_layout.id
|
||||||
|
}
|
||||||
requireComponents.analytics.metrics.track(Event.TabsTrayOpened)
|
requireComponents.analytics.metrics.track(Event.TabsTrayOpened)
|
||||||
|
|
||||||
val navigationInteractor =
|
val navigationInteractor =
|
||||||
|
Loading…
Reference in New Issue
Block a user