@@ -223,6 +223,9 @@ export class ActionBar extends ActionBarBase {
223
223
this . nativeViewProtected . setNavigationIcon ( drawableOrId ) ;
224
224
}
225
225
226
+ // Set navigation content descripion, used by screen readers for the vision-impaired users
227
+ this . nativeViewProtected . setNavigationContentDescription ( navButton . text || null ) ;
228
+
226
229
let navBtn = new WeakRef ( navButton ) ;
227
230
this . nativeViewProtected . setNavigationOnClickListener ( new android . view . View . OnClickListener ( {
228
231
onClick : function ( v ) {
@@ -285,7 +288,7 @@ export class ActionBar extends ActionBarBase {
285
288
let menuItem = menu . add ( android . view . Menu . NONE , item . _getItemId ( ) , android . view . Menu . NONE , item . text + "" ) ;
286
289
287
290
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.
289
292
item . android . position = "actionBar" ;
290
293
menuItem . setActionView ( item . actionView . android ) ;
291
294
ActionBar . _setOnClickListener ( item ) ;
@@ -376,7 +379,7 @@ export class ActionBar extends ActionBarBase {
376
379
}
377
380
378
381
// 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
380
383
defaultTitleTextColor = tv ? tv . getTextColors ( ) . getDefaultColor ( ) : - 570425344 ;
381
384
}
382
385
@@ -468,4 +471,4 @@ function getIconVisibility(iconVisibility: string): boolean {
468
471
469
472
function getSystemResourceId ( systemIcon : string ) : number {
470
473
return android . content . res . Resources . getSystem ( ) . getIdentifier ( systemIcon , "drawable" , "android" ) ;
471
- }
474
+ }
0 commit comments