Using Shell, more than 5 tabs works until navigating to another tab bar and back. #22875
Labels
area-controls-shell
Shell Navigation, Routes, Tabs, Flyout
area-controls-tabbedpage
TabbedPage
platform/android 🤖
s/triaged
Issue has been reviewed
s/verified
Verified / Reproducible Issue ready for Engineering Triage
t/bug
Something isn't working
Milestone
Description
I have an application that uses the Shell flyout and two tabbars. Both tabbars have more than 5 tabs.
When I launch the application, it loads. I select an item to navigate to the first tabbar page. It works and the extra tabs are in the "more" item. I then navigate the the second tabbar page and it works as expected.
I then navigate back to the first and get:
Java.Lang.IllegalArgumentException: 'Maximum number of items supported by BottomNavigationView is 5. Limit can be checked with BottomNavigationView#getMaxItemCount()'
The app then crashes.
Steps to Reproduce
Link to public reproduction project repository
https://github.com/JRPMike/MauiTabsIssueReproduction.git
Version with bug
8.0.40 SR5
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
Unknown/Other
Affected platforms
Android, I was not able test on other platforms
Affected platform versions
Android 14.0
Did you find any workaround?
No response
Relevant log output
The text was updated successfully, but these errors were encountered: