Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
The Tor Project
Applications
android-components
Commits
e2558378
Commit
e2558378
authored
Apr 09, 2020
by
mcarare
Browse files
For #6593: Update content description when item has dot notification
parent
52ca085f
Changes
2
Hide whitespace changes
Inline
Side-by-side
components/browser/menu/src/main/java/mozilla/components/browser/menu/item/BrowserMenuHighlightableItem.kt
View file @
e2558378
...
...
@@ -122,6 +122,7 @@ class BrowserMenuHighlightableItem(
highlightedTextView
.
visibility
=
View
.
VISIBLE
notificationDotView
.
imageTintList
=
ColorStateList
.
valueOf
(
highlight
.
notificationTint
)
notificationDotView
.
visibility
=
View
.
VISIBLE
view
.
contentDescription
=
"${notificationDotView.contentDescription}, ${textView.text}"
}
is
BrowserMenuHighlight
.
ClassicHighlight
->
{
view
.
setBackgroundResource
(
highlight
.
backgroundResource
)
...
...
components/browser/menu/src/main/res/layout/mozac_browser_menu_highlightable_item.xml
View file @
e2558378
...
...
@@ -35,7 +35,7 @@
android:translationX=
"@dimen/mozac_browser_menu_highlightable_notification_translate_x"
android:translationY=
"@dimen/mozac_browser_menu_highlightable_notification_translate_y"
android:background=
"@android:color/transparent"
android:
importantForAccessibility=
"no
"
android:
contentDescription=
"@string/mozac_browser_menu_highlighted
"
android:visibility=
"gone"
app:layout_constraintTop_toTopOf=
"@id/image"
app:layout_constraintEnd_toEndOf=
"@id/image"
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment