Skip to content

Commit

Permalink
Removed the unwanted code section
Browse files Browse the repository at this point in the history
  • Loading branch information
NanthiniMahalingam authored and PureWeen committed Nov 19, 2024
1 parent 0389b84 commit 2e80c03
Showing 1 changed file with 7 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -400,17 +400,14 @@ void UpdateBackButtonTitle()
var previousNavItem = viewControllers[count - 2].NavigationItem;
if (previousNavItem != null)
{
if (previousNavItem.BackBarButtonItem is null)
if (text is not null)
{
if (text is not null)
{
var barButtonItem = (previousNavItem.BackBarButtonItem ??= new UIBarButtonItem());
barButtonItem.Title = text;
}
else if (previousNavItem.BackBarButtonItem != null)
{
previousNavItem.BackBarButtonItem = null;
}
var barButtonItem = (previousNavItem.BackBarButtonItem ??= new UIBarButtonItem());
barButtonItem.Title = text;
}
else if (previousNavItem.BackBarButtonItem != null)
{
previousNavItem.BackBarButtonItem = null;
}
}
}
Expand Down

0 comments on commit 2e80c03

Please sign in to comment.