Skip to content
Open
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: 2 additions & 1 deletion backend/FwLite/FwLiteMaui/MainPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:FwLiteMaui"
xmlns:shared="clr-namespace:FwLiteShared;assembly=FwLiteShared"
x:Class="FwLiteMaui.MainPage">
x:Class="FwLiteMaui.MainPage"
SafeAreaEdges="Container">
<BlazorWebView x:Name="blazorWebView" HostPage="wwwroot/index.html">
<BlazorWebView.RootComponents>
<RootComponent Selector="#app" ComponentType="{x:Type shared:Root}"/>
Expand Down
21 changes: 19 additions & 2 deletions backend/FwLite/FwLiteMaui/Platforms/Android/MainActivity.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
using Android.App;
using Android.Content;
using Android.Content.PM;
using Android.Content.Res;
using Android.OS;
using AndroidX.Core.View;
using FwLiteShared.Auth;
using Microsoft.Identity.Client;

Expand All @@ -16,9 +18,24 @@ public class MainActivity : MauiAppCompatActivity
{
protected override void OnCreate(Bundle? savedInstanceState)
{
//custom style, declared in Android/Resources/values/styles.xml, values-v35 is used based on the android version
Theme?.ApplyStyle(Resource.Style.OptOutEdgeToEdgeEnforcement, force: false);
base.OnCreate(savedInstanceState);
ApplyBrandedSystemBars();
}

public override void OnConfigurationChanged(Configuration newConfig)
{
base.OnConfigurationChanged(newConfig);
ApplyBrandedSystemBars();
}

private void ApplyBrandedSystemBars()
{
if (Window is null) return;
Window.SetBackgroundDrawableResource(Resource.Color.colorPrimaryDark);
var controller = WindowCompat.GetInsetsController(Window, Window.DecorView);
if (controller is null) return;
controller.AppearanceLightStatusBars = false;
controller.AppearanceLightNavigationBars = false;
}

protected override void OnActivityResult(int requestCode, Result resultCode, Intent? data)
Expand Down

This file was deleted.

This file was deleted.

Loading