using Android.App;
using Android.Content.PM;
using Android.OS;

namespace Hua.Todo.Maui;

[Activity(Theme = "@style/Maui.SplashTheme", MainLauncher = true, LaunchMode = LaunchMode.SingleTop, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation | ConfigChanges.UiMode | ConfigChanges.ScreenLayout | ConfigChanges.SmallestScreenSize | ConfigChanges.Density)]
/// <summary>
/// Android 平台入口 Activity。
/// </summary>
public class MainActivity : MauiAppCompatActivity
{
    /// <summary>
    /// Activity 创建时回调。
    /// </summary>
    /// <param name="savedInstanceState">上次保存状态。</param>
    protected override void OnCreate(Bundle? savedInstanceState)
    {
        base.OnCreate(savedInstanceState);

#if DEBUG
        Android.Webkit.WebView.SetWebContentsDebuggingEnabled(true);
#endif
    }
}
