1
0
mirror of https://github.com/bitwarden/mobile.git synced 2024-12-27 17:08:00 +01:00

TabBarVisible logic fix

This commit is contained in:
Kyle Spearrin 2017-12-23 22:56:17 -05:00
parent 937ad444da
commit c7ba465970

View File

@ -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));
}
}
}