@@ -223,6 +223,9 @@ export class ActionBar extends ActionBarBase {
223223 this . nativeViewProtected . setNavigationIcon ( drawableOrId ) ;
224224 }
225225
226+ // Set navigation content descripion, used by screen readers for the vision-impaired users
227+ this . nativeViewProtected . setNavigationContentDescription ( navButton . text || null ) ;
228+
226229 let navBtn = new WeakRef ( navButton ) ;
227230 this . nativeViewProtected . setNavigationOnClickListener ( new android . view . View . OnClickListener ( {
228231 onClick : function ( v ) {
@@ -285,7 +288,7 @@ export class ActionBar extends ActionBarBase {
285288 let menuItem = menu . add ( android . view . Menu . NONE , item . _getItemId ( ) , android . view . Menu . NONE , item . text + "" ) ;
286289
287290 if ( item . actionView && item . actionView . android ) {
288- // With custom action view, the menuitem cannot be displayed in a popup menu.
291+ // With custom action view, the menuitem cannot be displayed in a popup menu.
289292 item . android . position = "actionBar" ;
290293 menuItem . setActionView ( item . actionView . android ) ;
291294 ActionBar . _setOnClickListener ( item ) ;
@@ -376,7 +379,7 @@ export class ActionBar extends ActionBarBase {
376379 }
377380
378381 // Fallback to hardcoded falue if we don't find TextView instance...
379- // using new TextView().getTextColors().getDefaultColor() returns different value: -1979711488
382+ // using new TextView().getTextColors().getDefaultColor() returns different value: -1979711488
380383 defaultTitleTextColor = tv ? tv . getTextColors ( ) . getDefaultColor ( ) : - 570425344 ;
381384 }
382385
@@ -468,4 +471,4 @@ function getIconVisibility(iconVisibility: string): boolean {
468471
469472function getSystemResourceId ( systemIcon : string ) : number {
470473 return android . content . res . Resources . getSystem ( ) . getIdentifier ( systemIcon , "drawable" , "android" ) ;
471- }
474+ }
0 commit comments