Skip to content

Commit

Permalink
Closes #139
Browse files Browse the repository at this point in the history
  • Loading branch information
3rob3 committed Sep 19, 2024
1 parent f7f3d07 commit 5d92ce9
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions ImmichFrame/Views/MainView.axaml.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using Avalonia.Controls;
using Avalonia;
using Avalonia.Controls;
using Avalonia.Interactivity;
using ImmichFrame.Helpers;
using ImmichFrame.ViewModels;
Expand All @@ -14,12 +15,11 @@ public partial class MainView : BaseView
public MainView()
{
InitializeComponent();
this.Loaded += OnLoaded;
this.AttachedToVisualTree += OnAttachedToVisualTree;
}

private async void OnLoaded(object? sender, RoutedEventArgs e)
{
if(PlatformDetector.IsAndroid())
private async void OnAttachedToVisualTree(object? sender, VisualTreeAttachmentEventArgs e)
{
if (PlatformDetector.IsAndroid())
{
var insetsManager = TopLevel.GetTopLevel(this)?.InsetsManager;
if (insetsManager != null)
Expand Down

0 comments on commit 5d92ce9

Please sign in to comment.