Using Activity#setTitle to have TalkBack announce root traversal.
Bug:
32260739
Bug:
28275570
Change-Id: I3b2b7c017d0c899fbccc8bc9b92453e715329317
}
mNavigator.update();
+ // Causes talkback to announce the activity's new title
+ if (mState.stack.isRecents()) {
+ setTitle(mRoots.getRecentsRoot().title);
+ } else {
+ setTitle(mState.stack.getTitle());
+ }
invalidateOptionsMenu();
}
Intent intent = getIntent();
return (intent != null && intent.hasExtra(Intent.EXTRA_TITLE))
? intent.getStringExtra(Intent.EXTRA_TITLE)
- : getTitle().toString();
+ : getString(R.string.downloads_label);
}
@Override