Fixed
Status Update
Comments
il...@google.com <il...@google.com>
il...@google.com <il...@google.com>
il...@google.com <il...@google.com> #2
What about Enums? Enum is a type-safe way to pass navigation arguments.
Will Enums be covered in this issue as part of Serializable or will have own handled separately?
Because for enum you can provide a reasonable default value but for Parcelable or Serializable only @null
Will Enums be covered in this issue as part of Serializable or will have own handled separately?
Because for enum you can provide a reasonable default value but for Parcelable or Serializable only @null
Description
Version used: 1.0.0-alpha07
Devices/Android versions reproduced on: Nexus 5x Android 6
When setting up with
NavigationUI.setupWithNavController(navigation_drawer, navController)
and
NavigationUI.setupActionBarWithNavController(), the navigation component automatically handles changing the action bar icon into the hamburger drawer or the up arrow when we navigate depending on what page we're on.
However, it does not update the content description for Accessibility correctly when changing the action bar icon. The content description always is "Navigate up" even when the hamburger menu icon is displayed for opening the drawer. (See picture attached)
Alternatively, if we manually set the content description with ActionBarDrawerToggle(this, mDrawerLayout,toolbar,R.string.drawer_open, R.string.drawer_close), then it will always be "open/close drawer".