From 505effa88b17ce8c3c7ac5403b76d9e5d0cfc2a5 Mon Sep 17 00:00:00 2001 From: wxr <wxr@hdlchina.com.cn> Date: 星期一, 28 十月 2024 11:58:31 +0800 Subject: [PATCH] 谷歌版本问题修复 --- HDL-ON_Android/HDL-ON_Android.csproj | 1 + HDL-ON_Android/Properties/AndroidManifest.xml | 2 +- HDL_ON/UI/UI2/FuntionControlView/Light/ColorTureLampPage.cs | 2 +- HDL-ON_Android/Resources/Resource.designer.cs | 2 +- HDL_ON/UI/UI0-Stan/Controls/CompoundControls/SeekBarImageControl.cs | 2 +- HDL_ON/UI/MainPage.cs | 2 +- NunitTest-Android/Resources/Resource.designer.cs | 2 +- 7 files changed, 7 insertions(+), 6 deletions(-) diff --git a/HDL-ON_Android/HDL-ON_Android.csproj b/HDL-ON_Android/HDL-ON_Android.csproj index f456c11..d2c12e8 100644 --- a/HDL-ON_Android/HDL-ON_Android.csproj +++ b/HDL-ON_Android/HDL-ON_Android.csproj @@ -48,6 +48,7 @@ <AndroidUseAapt2>true</AndroidUseAapt2> <EmbedAssembliesIntoApk>true</EmbedAssembliesIntoApk> <AndroidSupportedAbis>arm64-v8a;armeabi-v7a</AndroidSupportedAbis> + <AndroidPackageFormat>aab</AndroidPackageFormat> </PropertyGroup> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> <DebugSymbols>True</DebugSymbols> diff --git a/HDL-ON_Android/Properties/AndroidManifest.xml b/HDL-ON_Android/Properties/AndroidManifest.xml index 0b6e3ee..ba1f9fa 100644 --- a/HDL-ON_Android/Properties/AndroidManifest.xml +++ b/HDL-ON_Android/Properties/AndroidManifest.xml @@ -1,5 +1,5 @@ 锘�<?xml version="1.0" encoding="utf-8"?> -<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionName="2.7.0" package="com.hdl.onpro" xmlns:tools="http://schemas.android.com/tools" android:versionCode="202409301"> +<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionName="2.7.2" package="com.hdl.onpro" xmlns:tools="http://schemas.android.com/tools" android:versionCode="202410251"> <uses-sdk android:minSdkVersion="26" android:targetSdkVersion="34" /> <uses-permission android:name="android.permission.USE_CREDENTIALS" /> <uses-permission android:name="android.permission.FLASHLIGHT" /> diff --git a/HDL-ON_Android/Resources/Resource.designer.cs b/HDL-ON_Android/Resources/Resource.designer.cs index bda050e..265bfcd 100644 --- a/HDL-ON_Android/Resources/Resource.designer.cs +++ b/HDL-ON_Android/Resources/Resource.designer.cs @@ -15,7 +15,7 @@ { - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Xamarin.Android.Build.Tasks", "13.2.0.99")] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Xamarin.Android.Build.Tasks", "13.2.2.120")] public partial class Resource { diff --git a/HDL_ON/UI/MainPage.cs b/HDL_ON/UI/MainPage.cs index 5e03b01..d78e95f 100644 --- a/HDL_ON/UI/MainPage.cs +++ b/HDL_ON/UI/MainPage.cs @@ -26,7 +26,7 @@ /// <summary> /// 鐗堟湰鍙� /// </summary> - public static string VersionString = "2.7.0"; + public static string VersionString = "2.7.2"; ///// <summary> ///// 瀹㈡埛绔被鍨� ///// </summary> diff --git a/HDL_ON/UI/UI0-Stan/Controls/CompoundControls/SeekBarImageControl.cs b/HDL_ON/UI/UI0-Stan/Controls/CompoundControls/SeekBarImageControl.cs index 6579b0d..7205900 100644 --- a/HDL_ON/UI/UI0-Stan/Controls/CompoundControls/SeekBarImageControl.cs +++ b/HDL_ON/UI/UI0-Stan/Controls/CompoundControls/SeekBarImageControl.cs @@ -248,7 +248,7 @@ //褰撳墠婊戞潯鎵�鍦ㄧ殑澶ц嚧鐧惧垎姣� int tempValue = this.Progress - this.m_MinValue; if (tempValue < 0) { tempValue = 0; } - decimal persent = (decimal)tempValue / (this.m_MaxValue - this.m_MinValue); + decimal persent = (decimal)tempValue / (this.m_MaxValue - this.m_MinValue) == 0 ? 1 : (this.m_MaxValue - this.m_MinValue); //褰撳墠婊戞潯鎵�鍦ㄧ殑澶ц嚧浣嶇疆 XX += (int)((this.Width - this.m_SeekBarPadding * 2) * persent); //鍥犱负瑕佸眳涓�,鎵�浠ュ噺鎺夎嚜瀹氫箟鎺т欢鐨勫搴︾殑涓�鑸� diff --git a/HDL_ON/UI/UI2/FuntionControlView/Light/ColorTureLampPage.cs b/HDL_ON/UI/UI2/FuntionControlView/Light/ColorTureLampPage.cs index d5c0ef9..17895ba 100644 --- a/HDL_ON/UI/UI2/FuntionControlView/Light/ColorTureLampPage.cs +++ b/HDL_ON/UI/UI2/FuntionControlView/Light/ColorTureLampPage.cs @@ -787,7 +787,7 @@ //褰撳墠婊戞潯鎵�鍦ㄧ殑澶ц嚧鐧惧垎姣� int tempValue = this.Progress - this.m_MinValue; if (tempValue < 0) { tempValue = 0; } - decimal persent = (decimal)tempValue / (this.m_MaxValue - this.m_MinValue); + decimal persent = (decimal)tempValue / (this.m_MaxValue - this.m_MinValue) == 0 ? 1 : (this.m_MaxValue - this.m_MinValue); //褰撳墠婊戞潯鎵�鍦ㄧ殑澶ц嚧浣嶇疆 XX += (int)((this.Width - this.m_SeekBarPadding * 2) * persent); //鍥犱负瑕佸眳涓�,鎵�浠ュ噺鎺夎嚜瀹氫箟鎺т欢鐨勫搴︾殑涓�鑸� diff --git a/NunitTest-Android/Resources/Resource.designer.cs b/NunitTest-Android/Resources/Resource.designer.cs index ae568d0..21a62c4 100644 --- a/NunitTest-Android/Resources/Resource.designer.cs +++ b/NunitTest-Android/Resources/Resource.designer.cs @@ -15,7 +15,7 @@ { - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Xamarin.Android.Build.Tasks", "13.2.0.99")] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Xamarin.Android.Build.Tasks", "13.2.2.120")] public partial class Resource { -- Gitblit v1.8.0