-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Fix issue 6878 | [Bug] ShellItem.Items.Clear() crashes when the ShellItem has bottom tabs #8215
Conversation
Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/TestPages/TestPages.cs
Outdated
Show resolved
Hide resolved
I`ve made the changes proposed by @PureWeen and updated this branch |
@felipebaltazar can you rebase this to 4.4? Then I'll give the UI tests one more run through and merge. Thank you!! |
8249fed
to
2379ab8
Compare
@PureWeen I've rebased this branch to 4.4.0, but now we have 41 additional commits, seems like changes made on master.. so can I only revert theses commits? |
@felipebaltazar you'll need to rebase and force push. If you're having issues I can give it a go git rebase --onto 4.4.0 master issue-6878 Then fix merge conflicts Then do a force push to your branch |
Hi, This is still broken in IOS even when the Tab has multiple ShellItems when I try to Remove the first item "Items.RemoveAt(0);" it still crashes. |
Hi guys, I am using Xamarin.Forms.4.5.0.282-pre4 I don't get crashes, but I am unable to remove the first item. These calls do nothing. The first Item always remains in the Items collection. In my use case, the top menus are created based on the user data. I must create a default placeholder in xaml, but i need to delete it (or make it invisible, but that is not available yet).
EDIT |
@francis2 do you have a repro you can attach? |
Sure, here you go. |
Hi guys, Tab.Items.Clear() crashes on 4.5.0.356. System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. Attached is a repro solution. Crash occurs in AppShell.xaml.cs line 28 on Tab.Items.Clear() Thanks |
Description of Change
I followed another PR (#8079) feedback and create a null check to avoid NullException for
ShellBottomNavViewAppearanceTracker.SetBackgroundColor
Issues Resolved
API Changes
Changed:
Platforms Affected
Behavioral/Visual Changes
None
Before/After Screenshots
Not applicable
Testing Procedure
PR Checklist