Fixed
Status Update
Comments
il...@google.com <il...@google.com>
jb...@google.com <jb...@google.com> #3
Yes, lets add some logging similar to
ap...@google.com <ap...@google.com> #4
Project: platform/frameworks/support
Branch: androidx-main
commit 80f0d592a73b041d01b6864705b96da94b7c9ff1
Author: Clara Fok <clarafok@google.com>
Date: Mon Oct 31 10:53:07 2022
Add log when NavigationUI fails to navigate to MenuItem
Test: n/a
Bug: 247730357
Change-Id: I2af5a295550cb72c05b7e1308be8db325234bd22
M navigation/navigation-ui/src/main/java/androidx/navigation/ui/NavigationUI.kt
https://android-review.googlesource.com/2279090
Branch: androidx-main
commit 80f0d592a73b041d01b6864705b96da94b7c9ff1
Author: Clara Fok <clarafok@google.com>
Date: Mon Oct 31 10:53:07 2022
Add log when NavigationUI fails to navigate to MenuItem
Test: n/a
Bug: 247730357
Change-Id: I2af5a295550cb72c05b7e1308be8db325234bd22
M navigation/navigation-ui/src/main/java/androidx/navigation/ui/NavigationUI.kt
il...@google.com <il...@google.com> #5
We've added logging and it will be available in Navigation 2.6.0-alpha04.
na...@google.com <na...@google.com> #6
The following release(s) address this bug.It is possible this bug has only been partially addressed:
androidx.navigation:navigation-ui:2.6.0-alpha04
Description
Steps to reproduce the problem (including sample code if appropriate).
TestBottomNav.zip
to Android Studio and runDashboard
orNotification
item on BottomNavigationView.What happened.
There is no response after clicking tab item, meanwhile there is no related exception messages printed in Logcat.
This abnormal behaviour was intentional made on my part, just to amplify the problem. To fix it, go to
app/src/main/res/menu/bottom_nav_menu.xml
, change everyandroid:id
starts withNavigation
tonavigation
will be fine.NavigationUI
should not ate the exception message with a simplefalse
return. This will drive novice developers crazy to find out the problem. SeeNo.