Skip to content
This repository was archived by the owner on May 24, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions MainPage.xaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="AutoPilot.App.MainPage"
SafeAreaEdges="Container">
x:Class="AutoPilot.App.MainPage">

<BlazorWebView x:Name="blazorWebView" HostPage="wwwroot/index.html" />

Expand Down
1 change: 1 addition & 0 deletions MainPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ public MainPage()
private void OnBlazorWebViewInitialized(object? sender, BlazorWebViewInitializedEventArgs e)
{
var webView = e.WebView;

// Wait for layout so WindowInsets are available
webView.ViewTreeObserver!.GlobalLayout += (s, args) =>
{
Expand Down
15 changes: 0 additions & 15 deletions Platforms/Android/MainActivity.cs
Original file line number Diff line number Diff line change
@@ -1,24 +1,9 @@
using Android.App;
using Android.Content.PM;
using Android.OS;
using Android.Views;
using AndroidX.Core.View;

namespace AutoPilot.App;

[Activity(Theme = "@style/Maui.SplashTheme", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation | ConfigChanges.UiMode | ConfigChanges.ScreenLayout | ConfigChanges.SmallestScreenSize | ConfigChanges.Density)]
public class MainActivity : MauiAppCompatActivity
{
protected override void OnCreate(Bundle? savedInstanceState)
{
base.OnCreate(savedInstanceState);

// Edge-to-edge with transparent system bars
if (Window != null)
{
WindowCompat.SetDecorFitsSystemWindows(Window, false);
Window.SetStatusBarColor(Android.Graphics.Color.Transparent);
Window.SetNavigationBarColor(Android.Graphics.Color.Transparent);
}
}
}
2 changes: 0 additions & 2 deletions wwwroot/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ html, body {
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
font-size: var(--app-font-size, 20px);
color: #a0b4cc;
/* Android bottom nav bar safe area */
padding-bottom: var(--nav-bar-height, env(safe-area-inset-bottom, 0px));
}

a, .btn-link {
Expand Down