mirror of
https://github.com/bitwarden/mobile
synced 2026-01-04 09:33:16 +00:00
PM-3349 PM-3350 MAUI Migration Initial
This commit is contained in:
34
src/Core/Effects/TabBarEffect.cs
Executable file
34
src/Core/Effects/TabBarEffect.cs
Executable file
@@ -0,0 +1,34 @@
|
||||
using Microsoft.Maui.Controls;
|
||||
using Microsoft.Maui;
|
||||
using Microsoft.Maui.Controls.Platform;
|
||||
|
||||
namespace Bit.App.Effects
|
||||
{
|
||||
public class TabBarEffect : RoutingEffect
|
||||
{
|
||||
}
|
||||
|
||||
#if ANDROID
|
||||
public class TabBarPlatformEffect : PlatformEffect
|
||||
{
|
||||
protected override void OnAttached()
|
||||
{
|
||||
// TODO: [MAUI-Migration] [Critical]
|
||||
// now Container is View instead of ViewGroup, let's review this
|
||||
//if (!(Container.GetChildAt(0) is ViewGroup layout))
|
||||
//{
|
||||
// return;
|
||||
//}
|
||||
//if (!(layout.GetChildAt(1) is BottomNavigationView bottomNavigationView))
|
||||
//{
|
||||
// return;
|
||||
//}
|
||||
//bottomNavigationView.LabelVisibilityMode = LabelVisibilityMode.LabelVisibilityLabeled;
|
||||
}
|
||||
|
||||
protected override void OnDetached()
|
||||
{
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
Reference in New Issue
Block a user