From cd70a2a8a2bdebf51259d8f39ed110a34b9be9e5 Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期二, 11 四月 2023 14:50:21 +0800
Subject: [PATCH] 修改启动屏幕

---
 HDL-ON_Android/AgreementActivity.cs |    9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/HDL-ON_Android/AgreementActivity.cs b/HDL-ON_Android/AgreementActivity.cs
index 84a475a..dc866b1 100644
--- a/HDL-ON_Android/AgreementActivity.cs
+++ b/HDL-ON_Android/AgreementActivity.cs
@@ -1,6 +1,7 @@
 锘縰sing System;
 using Android.App;
 using Android.Content;
+using Android.Content.PM;
 using Android.Net;
 using Android.OS;
 using CN.Jpush.Android.Api;
@@ -16,7 +17,7 @@
 
 namespace HDL_ON_Android
 {
-    [Activity(Label = "AgreementActivity", Theme = "@style/MyTheme1")]
+    [Activity(Label = "AgreementActivity", Theme = "@style/MyTheme1", ScreenOrientation = ScreenOrientation.Portrait)]
     public class AgreementActivity : Activity
     {
         protected override void OnCreate(Bundle savedInstanceState)
@@ -36,7 +37,7 @@
             {
                 Intent i = new Intent(this, typeof(WebviewActivity));
 
-                i.PutExtra("url", "https://developer.hdlcontrol.com/HDLOnPlusPrivacyPolicy.html");
+                i.PutExtra("url", HDL_ON.Constant.URL_PRIVACYPOLICY);
                 StartActivity(i);
                 Intent data = new Intent();
                 data.PutExtra("data", "disagree");
@@ -46,7 +47,7 @@
             {
                 Intent i = new Intent(this, typeof(WebviewActivity));
 
-                i.PutExtra("url", "https://developer.hdlcontrol.com/HDLOnPlusUserAgreement.html");
+                i.PutExtra("url",HDL_ON.Constant.URL_USERAGREEMENT);
 
                 StartActivity(i);
                 Intent data = new Intent();
@@ -70,7 +71,5 @@
                 Finish();
             };
         }
-
-
     }
 }
\ No newline at end of file

--
Gitblit v1.8.0