mirror of
https://github.com/bitwarden/android.git
synced 2024-12-25 02:18:27 +03:00
TabBarVisible logic fix
This commit is contained in:
parent
937ad444da
commit
c7ba465970
1 changed files with 3 additions and 1 deletions
|
@ -12,6 +12,7 @@ using System.Threading.Tasks;
|
||||||
using Bit.App.Models.Page;
|
using Bit.App.Models.Page;
|
||||||
using Bit.iOS.Core.Views;
|
using Bit.iOS.Core.Views;
|
||||||
using CoreGraphics;
|
using CoreGraphics;
|
||||||
|
using System.Linq;
|
||||||
|
|
||||||
namespace Bit.iOS.Services
|
namespace Bit.iOS.Services
|
||||||
{
|
{
|
||||||
|
@ -322,7 +323,8 @@ namespace Bit.iOS.Services
|
||||||
private bool TabBarVisible()
|
private bool TabBarVisible()
|
||||||
{
|
{
|
||||||
var vc = GetPresentedViewController();
|
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 a new issue