mirror of
https://github.com/bitwarden/mobile.git
synced 2024-11-26 12:16:07 +01:00
TabBarVisible logic fix
This commit is contained in:
parent
937ad444da
commit
c7ba465970
@ -12,6 +12,7 @@ using System.Threading.Tasks;
|
||||
using Bit.App.Models.Page;
|
||||
using Bit.iOS.Core.Views;
|
||||
using CoreGraphics;
|
||||
using System.Linq;
|
||||
|
||||
namespace Bit.iOS.Services
|
||||
{
|
||||
@ -322,7 +323,8 @@ namespace Bit.iOS.Services
|
||||
private bool TabBarVisible()
|
||||
{
|
||||
var vc = GetPresentedViewController();
|
||||
return vc?.TabBarController != null && !vc.TabBarController.TabBar.Hidden;
|
||||
return vc != null && (vc is UITabBarController ||
|
||||
(vc.ChildViewControllers?.Any(c => c is UITabBarController) ?? false));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user