Refactoring UI

This commit is contained in:
2025-08-09 21:11:41 +08:00
parent c42562bc15
commit 4cb51a38cb
7 changed files with 864 additions and 579 deletions

View File

@ -1,5 +1,6 @@
using Android.App;
using Android.Runtime;
using HeartRateMonitorAndroid.Services;
namespace HeartRateMonitorAndroid;
@ -12,4 +13,12 @@ public class MainApplication : MauiApplication
}
protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp();
public override void OnCreate()
{
base.OnCreate();
// 设置Android平台特定的服务助手
ServiceHelper.Current = new Platforms.Android.AndroidServiceHelper();
}
}